1 Take into account the CFLAGS/LDFLAGS passed in the environment.
3 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
5 Index: host-cloop-2.634-1/Makefile
6 ===================================================================
7 --- host-cloop-2.634-1.orig/Makefile 2010-12-16 09:17:52.826555645 +0100
8 +++ host-cloop-2.634-1/Makefile 2010-12-16 09:18:57.208713338 +0100
13 -CFLAGS:=-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -s -I. -fno-strict-aliasing -fno-common -fomit-frame-pointer
14 +CLOOP_CFLAGS:=-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -s -I. -fno-strict-aliasing -fno-common -fomit-frame-pointer
17 KERNOBJ:=compressed_loop.o
19 ( cd advancecomp-1.15 ; ./configure && $(MAKE) advfs )
21 extract_compressed_fs: extract_compressed_fs.c
22 - $(CC) -Wall -O2 -s -o $@ $< -lz
23 + $(CC) $(CFLAGS) $(CLOOP_CFLAGS) $(LDFLAGS) -Wall -O2 -s -o $@ $< -lz
25 cloop_suspend: cloop_suspend.o
27 + $(CC) $(CFLAGS) $(CLOOP_CFLAGS) $(LDFLAGS) -o $@ $<
30 rm -rf create_compressed_fs extract_compressed_fs zoom *.o *.ko Module.symvers .cloop* .compressed_loop.* .tmp*