diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2011-07-10 21:59:54 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2011-07-10 21:59:54 +0200 |
commit | 7b819c32f8830676433764eb2fd7af6851bb5034 (patch) | |
tree | 1dec9bfa1363dfc8ee3a6fb08392c795fcecdb9a /package/uboot-mkimage/uboot-mkimage-2011.03-hostcflags-override-fix.patch | |
parent | 5e0d46138fbba1197f4f9cef4b96c7b87f42a5a1 (diff) |
uboot-mkimage: use correct host compiler/flags
As used elswwhere in BR.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/uboot-mkimage/uboot-mkimage-2011.03-hostcflags-override-fix.patch')
-rw-r--r-- | package/uboot-mkimage/uboot-mkimage-2011.03-hostcflags-override-fix.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/package/uboot-mkimage/uboot-mkimage-2011.03-hostcflags-override-fix.patch b/package/uboot-mkimage/uboot-mkimage-2011.03-hostcflags-override-fix.patch new file mode 100644 index 000000000..0202eda9b --- /dev/null +++ b/package/uboot-mkimage/uboot-mkimage-2011.03-hostcflags-override-fix.patch @@ -0,0 +1,29 @@ +[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 |