diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-08-03 17:04:42 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-08-03 17:04:42 +0000 |
commit | 4f46a039746af9264054124519e8c5e0ec0a520e (patch) | |
tree | 48ead47c44f9c0862d7c59c712fe3e8f39b10fff /makefiles/Makefile.tools | |
parent | 06213738db7592e4e7fed9f7afad6b120416b27f (diff) | |
download | buildsystem-4f46a039746af9264054124519e8c5e0ec0a520e.tar.gz buildsystem-4f46a039746af9264054124519e8c5e0ec0a520e.tar.bz2 |
Some small attempt to prevent compilation failure when crazy uname -s output is encountered.
svn path=/trunk/tools/buildsystem/; revision=9021
Diffstat (limited to 'makefiles/Makefile.tools')
-rw-r--r-- | makefiles/Makefile.tools | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/makefiles/Makefile.tools b/makefiles/Makefile.tools index 467ca5d..6f078a4 100644 --- a/makefiles/Makefile.tools +++ b/makefiles/Makefile.tools @@ -213,7 +213,11 @@ endif ASFLAGS ?= -xassembler-with-cpp -CFLAGS := $(CFLAGS) $(OPTCFLAGS) -DBUILD_TARGET_$(TARGET) -DBUILD_HOST_$(HOST) +CFLAGS := $(CFLAGS) $(OPTCFLAGS) +# Some attempt to sanitise TARGET and HOST when used as pre-defines +CFLAGS := $(CFLAGS) -DBUILD_TARGET_$(subst .,_,$(subst -,_,$(TARGET))) +CFLAGS := $(CFLAGS) -DBUILD_HOST_$(subst .,_,$(subst -,_,$(HOST))) + ASFLAGS := $(ASFLAGS) $(CFLAGS) LDFLAGS := $(LDFLAGS) $(OPTLDFLAGS) |