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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>
---
 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
-- 
1.6.3.3

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux