mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-14 15:53:29 +08:00
0a7a850ca5
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
30 lines
946 B
Diff
30 lines
946 B
Diff
[PATCH] Fix tools build with custom HOSTCFLAGS
|
|
|
|
We always need to append HOSTCPPFLAGS, even if HOSTCFLAGS have been
|
|
overridden on the cmdline.
|
|
|
|
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
|
|
---
|
|
config.mk | 6 ++++--
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
Index: u-boot-2011.03/config.mk
|
|
===================================================================
|
|
--- u-boot-2011.03.orig/config.mk
|
|
+++ u-boot-2011.03/config.mk
|
|
@@ -46,10 +46,12 @@
|
|
|
|
#########################################################################
|
|
|
|
-HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \
|
|
- $(HOSTCPPFLAGS)
|
|
+HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
|
|
HOSTSTRIP = strip
|
|
|
|
+# append CPPFLAGS even if CFLAGS has been overridden on cmdline
|
|
+override HOSTCFLAGS += $(HOSTCPPFLAGS)
|
|
+
|
|
#
|
|
# Mac OS X / Darwin's C preprocessor is Apple specific. It
|
|
# generates numerous errors and warnings. We want to bypass it
|