build: also need to put stripped CC in conf.env
authorAndrew Tridgell <tridge@samba.org>
Sat, 20 Mar 2010 20:00:52 +0000 (16:00 -0400)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:26:55 +0000 (20:26 +1000)
lib/replace/wscript

index 575dcf9ac228fc71cafa5b005edb49a0f7fde849..f9d051434ff8456a968a3ae3b573d77ca6df389d 100644 (file)
@@ -57,7 +57,8 @@ def configure(conf):
     # 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.env['CC'] = os.environ.get('CC').strip()
+        os.environ['CC'] = conf.env['CC']
 
     conf.check_tool('compiler_cc')