2016-12-18 15:39:47 +01:00
|
|
|
From 626f51bf3f12fe294f622900615c72e25ee144c6 Mon Sep 17 00:00:00 2001
|
2015-12-16 00:58:55 +01:00
|
|
|
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
|
|
|
Date: Tue, 15 Dec 2015 20:51:35 -0300
|
|
|
|
Subject: [PATCH] xfsprogs: don't use CFLAGS with BUILD_CC
|
|
|
|
|
|
|
|
When cross-compiling CFLAGS might not be suitable for the host
|
|
|
|
(BUILD_CC) compiler since it might contain arch-specific options.
|
|
|
|
|
|
|
|
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
|
|
|
---
|
|
|
|
libxfs/Makefile | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/libxfs/Makefile b/libxfs/Makefile
|
2016-12-18 15:39:47 +01:00
|
|
|
index 5a07723..0c37d3e 100644
|
2015-12-16 00:58:55 +01:00
|
|
|
--- a/libxfs/Makefile
|
|
|
|
+++ b/libxfs/Makefile
|
2016-12-18 15:39:47 +01:00
|
|
|
@@ -124,7 +124,7 @@ default: ltdepend $(LTLIBRARY)
|
2015-12-16 00:58:55 +01:00
|
|
|
|
|
|
|
crc32table.h: gen_crc32table.c
|
|
|
|
@echo " [CC] gen_crc32table"
|
|
|
|
- $(Q) $(BUILD_CC) $(CFLAGS) -o gen_crc32table $<
|
|
|
|
+ $(Q) $(BUILD_CC) -o gen_crc32table $<
|
|
|
|
@echo " [GENERATE] $@"
|
|
|
|
$(Q) ./gen_crc32table > crc32table.h
|
|
|
|
|
2016-12-18 15:39:47 +01:00
|
|
|
@@ -135,7 +135,7 @@ crc32table.h: gen_crc32table.c
|
2015-12-16 00:58:55 +01:00
|
|
|
# disk.
|
|
|
|
crc32selftest: gen_crc32table.c crc32table.h crc32.c
|
|
|
|
@echo " [TEST] CRC32"
|
|
|
|
- $(Q) $(BUILD_CC) $(CFLAGS) -D CRC32_SELFTEST=1 crc32.c -o $@
|
|
|
|
+ $(Q) $(BUILD_CC) -D CRC32_SELFTEST=1 crc32.c -o $@
|
|
|
|
$(Q) ./$@
|
|
|
|
|
|
|
|
# set up include/xfs header directory
|
|
|
|
--
|
2016-12-18 15:39:47 +01:00
|
|
|
2.7.4
|
2015-12-16 00:58:55 +01:00
|
|
|
|