summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-19 10:58:58 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:53 +1000
commit6e550ac4c7f2c2a2a14ed0816e439824e8c898aa (patch)
treea197f07ad7bdca06794824c9590c681ffa32f630
parent2a1520ba67c27963e494012c02b73e0a14579347 (diff)
downloadsamba-6e550ac4c7f2c2a2a14ed0816e439824e8c898aa.tar.gz
samba-6e550ac4c7f2c2a2a14ed0816e439824e8c898aa.tar.bz2
samba-6e550ac4c7f2c2a2a14ed0816e439824e8c898aa.zip
build: trim whitespace from CC options
-rw-r--r--lib/replace/wscript5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 5fd7027141..e189ab31df 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -48,6 +48,11 @@ def configure(conf):
# load our local waf extensions
conf.check_tool('wafsamba', tooldir=conf.srcdir + "/buildtools/wafsamba")
+ # trim whitespaces from 'CC'.
+ # The build farm sometimes puts a space at the start
+ if os.environ.get('CC'):
+ os.environ['CC'] = os.environ.get('CC').strip()
+
conf.check_tool('compiler_cc')
# gccdeps can be useful for debugging recursion in #include lines
conf.check_tool('gccdeps', tooldir=conf.srcdir + "/buildtools/wafsamba")