linux-pam: add optional libselinux and audit dependencies
[buildroot-gz.git] / package / xfsprogs / 0003-xfsprogs-don-t-use-CFLAGS-with-BUILD_CC.patch
blob6617935bf7882e701454a56910585998785a6593
1 From 5b3dd8eb1f7720c68dab032c3d89d4e3102d6347 Mon Sep 17 00:00:00 2001
2 From: Gustavo Zacarias <gustavo@zacarias.com.ar>
3 Date: Tue, 15 Dec 2015 20:51:35 -0300
4 Subject: [PATCH] xfsprogs: don't use CFLAGS with BUILD_CC
6 When cross-compiling CFLAGS might not be suitable for the host
7 (BUILD_CC) compiler since it might contain arch-specific options.
9 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
10 ---
11 Status: reported http://oss.sgi.com/bugzilla/show_bug.cgi?id=1132
13 libxfs/Makefile | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
16 diff --git a/libxfs/Makefile b/libxfs/Makefile
17 index ecf1921..3979077 100644
18 --- a/libxfs/Makefile
19 +++ b/libxfs/Makefile
20 @@ -111,7 +111,7 @@ default: crc32selftest ltdepend $(LTLIBRARY)
22 crc32table.h: gen_crc32table.c
23 @echo " [CC] gen_crc32table"
24 - $(Q) $(BUILD_CC) $(CFLAGS) -o gen_crc32table $<
25 + $(Q) $(BUILD_CC) -o gen_crc32table $<
26 @echo " [GENERATE] $@"
27 $(Q) ./gen_crc32table > crc32table.h
29 @@ -122,7 +122,7 @@ crc32table.h: gen_crc32table.c
30 # disk.
31 crc32selftest: gen_crc32table.c crc32table.h crc32.c
32 @echo " [TEST] CRC32"
33 - $(Q) $(BUILD_CC) $(CFLAGS) -D CRC32_SELFTEST=1 crc32.c -o $@
34 + $(Q) $(BUILD_CC) -D CRC32_SELFTEST=1 crc32.c -o $@
35 $(Q) ./$@
37 # set up include/xfs header directory
38 --
39 2.4.10