[media-ctl,3/3] Be able to add more CFLAGS

Message ID 1279124246-12187-4-git-send-email-saaguirre@ti.com (mailing list archive)
State Superseded, archived
Headers

Commit Message

Aguirre Rodriguez, Sergio Alberto July 14, 2010, 4:17 p.m. UTC
  This allows the gcc compilation to build with extra parameters.

For example, if we want to build with -static, we just do:

make CFLAGS=-static

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
  

Comments

Laurent Pinchart July 30, 2010, 1:42 p.m. UTC | #1
Hi Sergio,

Thanks for the patch, and sorry for the delay. Applied.

On Wednesday 14 July 2010 18:17:26 Sergio Aguirre wrote:
> This allows the gcc compilation to build with extra parameters.
> 
> For example, if we want to build with -static, we just do:
> 
> make CFLAGS=-static
> 
> Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
> ---
>  Makefile |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 300ed7e..bd53626 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -3,7 +3,7 @@ HDIR ?= /usr/include
> 
>  CC   := $(CROSS_COMPILE)gcc
> 
> -CFLAGS = -O2 -Wall -fpic -I$(HDIR)
> +CFLAGS += -O2 -Wall -fpic -I$(HDIR)
>  OBJS = media.o main.o options.o subdev.o
> 
>  all: media-ctl
  

Patch

diff --git a/Makefile b/Makefile
index 300ed7e..bd53626 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@  HDIR ?= /usr/include
 
 CC   := $(CROSS_COMPILE)gcc
 
-CFLAGS = -O2 -Wall -fpic -I$(HDIR)
+CFLAGS += -O2 -Wall -fpic -I$(HDIR)
 OBJS = media.o main.o options.o subdev.o
 
 all: media-ctl