* [Buildroot] [PATCH] xfsprogs: add cross-compile fix patch
@ 2015-12-15 23:58 Gustavo Zacarias
2015-12-16 8:36 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Gustavo Zacarias @ 2015-12-15 23:58 UTC (permalink / raw)
To: buildroot
Don't use CFLAGS (target) with BUILD_CC (host), fixes:
http://autobuild.buildroot.net/results/c94/c945bdb1427b55e03901027fa674b577e45963a1/
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
...3-xfsprogs-don-t-use-CFLAGS-with-BUILD_CC.patch | 40 ++++++++++++++++++++++
1 file changed, 40 insertions(+)
create mode 100644 package/xfsprogs/0003-xfsprogs-don-t-use-CFLAGS-with-BUILD_CC.patch
diff --git a/package/xfsprogs/0003-xfsprogs-don-t-use-CFLAGS-with-BUILD_CC.patch b/package/xfsprogs/0003-xfsprogs-don-t-use-CFLAGS-with-BUILD_CC.patch
new file mode 100644
index 0000000..6617935
--- /dev/null
+++ b/package/xfsprogs/0003-xfsprogs-don-t-use-CFLAGS-with-BUILD_CC.patch
@@ -0,0 +1,40 @@
+From 5b3dd8eb1f7720c68dab032c3d89d4e3102d6347 Mon Sep 17 00:00:00 2001
+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>
+---
+Status: reported http://oss.sgi.com/bugzilla/show_bug.cgi?id=1132
+
+ libxfs/Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/libxfs/Makefile b/libxfs/Makefile
+index ecf1921..3979077 100644
+--- a/libxfs/Makefile
++++ b/libxfs/Makefile
+@@ -111,7 +111,7 @@ default: crc32selftest ltdepend $(LTLIBRARY)
+
+ 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
+
+@@ -122,7 +122,7 @@ crc32table.h: gen_crc32table.c
+ # 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
+--
+2.4.10
+
--
2.4.10
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] xfsprogs: add cross-compile fix patch
2015-12-15 23:58 [Buildroot] [PATCH] xfsprogs: add cross-compile fix patch Gustavo Zacarias
@ 2015-12-16 8:36 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-12-16 8:36 UTC (permalink / raw)
To: buildroot
Dear Gustavo Zacarias,
On Tue, 15 Dec 2015 20:58:55 -0300, Gustavo Zacarias wrote:
> Don't use CFLAGS (target) with BUILD_CC (host), fixes:
> http://autobuild.buildroot.net/results/c94/c945bdb1427b55e03901027fa674b577e45963a1/
>
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
> ---
> ...3-xfsprogs-don-t-use-CFLAGS-with-BUILD_CC.patch | 40 ++++++++++++++++++++++
> 1 file changed, 40 insertions(+)
> create mode 100644 package/xfsprogs/0003-xfsprogs-don-t-use-CFLAGS-with-BUILD_CC.patch
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-12-16 8:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-15 23:58 [Buildroot] [PATCH] xfsprogs: add cross-compile fix patch Gustavo Zacarias
2015-12-16 8:36 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.