wavpack: properly wrap help text
[buildroot-gz.git] / package / cloop / 0001-cflags.patch
blobc421dd7f8bdba2241fd6838fcecfb0ddc0605d6f
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
9 @@ -15,7 +15,7 @@
10 endif
12 ifdef APPSONLY
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
15 endif
17 KERNOBJ:=compressed_loop.o
18 @@ -53,10 +53,10 @@
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
26 - $(CC) -o $@ $<
27 + $(CC) $(CFLAGS) $(CLOOP_CFLAGS) $(LDFLAGS) -o $@ $<
29 clean:
30 rm -rf create_compressed_fs extract_compressed_fs zoom *.o *.ko Module.symvers .cloop* .compressed_loop.* .tmp*