cloop-2.634-1-cflags.patch 1.1 KB

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