| 1 | diff -pruN imx-lib.orig/ipu/Makefile imx-lib/ipu/Makefile |
| 2 | --- imx-lib.orig/ipu/Makefile 2013-02-12 14:38:42.058281374 +0100 |
| 3 | +++ imx-lib/ipu/Makefile 2013-02-12 15:12:08.418266876 +0100 |
| 4 | @@ -32,7 +32,7 @@ $(LIB_SONAME_FULL): $(OBJS) |
| 5 | ifeq "$(PLATFORM)" "" |
| 6 | $(error "Unspecified PLATFORM variable") |
| 7 | endif |
| 8 | - $(CC) -D$(PLATFORM) $(INCLUDE) -Wall -O2 -fPIC -c $^ -o $@ |
| 9 | + $(CC) -D$(PLATFORM) $(INCLUDE) -Wall $(CFLAGS) -fPIC -c $^ -o $@ |
| 10 | |
| 11 | .PHONY: clean |
| 12 | clean: |
| 13 | diff -pruN imx-lib.orig/sahara2/Makefile imx-lib/sahara2/Makefile |
| 14 | --- imx-lib.orig/sahara2/Makefile 2013-02-12 14:38:42.068285374 +0100 |
| 15 | +++ imx-lib/sahara2/Makefile 2013-02-12 14:40:51.308266628 +0100 |
| 16 | @@ -53,7 +53,7 @@ $(LIBNAME).a: $(OBJS) |
| 17 | $(AR) -rc $@ $^ |
| 18 | |
| 19 | $(LIB_SONAME_FULL): $(OBJS) |
| 20 | - $(CC) -shared -nostartfiles -Wl,-soname,$@ -o $@ $^ |
| 21 | + $(CC) $(CFLAGS) $(INC) -shared -nostartfiles -Wl,-soname,$@ -o $@ $^ |
| 22 | ln -s $(LIB_SONAME_FULL) $(LIB_SONAME).$(LIB_VERSION_MAJOR) |
| 23 | ln -s $(LIB_SONAME_FULL) $(LIB_SONAME) |
| 24 | |
| 25 | diff -pruN imx-lib.orig/screenlayer/Makefile imx-lib/screenlayer/Makefile |
| 26 | --- imx-lib.orig/screenlayer/Makefile 2013-02-12 14:38:42.078285500 +0100 |
| 27 | +++ imx-lib/screenlayer/Makefile 2013-02-12 15:14:17.628266623 +0100 |
| 28 | @@ -33,7 +33,7 @@ $(LIB_SONAME_FULL): $(OBJS) |
| 29 | ifeq "$(PLATFORM)" "" |
| 30 | $(error "Unspecified PLATFORM variable") |
| 31 | endif |
| 32 | - $(CC) -D$(PLATFORM) $(INC) -Wall -O2 -fPIC -c $^ -o $@ |
| 33 | + $(CC) -D$(PLATFORM) $(INC) -Wall $(CFLAGS) -O2 -fPIC -c $^ -o $@ |
| 34 | |
| 35 | .PHONY: clean |
| 36 | clean: |
| 37 | diff -pruN imx-lib.orig/vpu/Makefile imx-lib/vpu/Makefile |
| 38 | --- imx-lib.orig/vpu/Makefile 2013-02-12 14:38:42.058281374 +0100 |
| 39 | +++ imx-lib/vpu/Makefile 2013-02-12 15:11:42.348266502 +0100 |
| 40 | @@ -43,7 +43,7 @@ all install : |
| 41 | endif |
| 42 | |
| 43 | %.o: %.c |
| 44 | - $(CC) -D$(PLATFORM) -Wall -O2 -fPIC -c $^ -o $@ |
| 45 | + $(CC) -D$(PLATFORM) -Wall $(CFLAGS) -fPIC -c $^ -o $@ |
| 46 | |
| 47 | $(LIB_SONAME_FULL): $(OBJ) |
| 48 | $(CC) -shared -nostartfiles -Wl,-soname,$@ $^ -o $@ |