wafsamba/irixcc: next try to inject '-c99' the the build
authorStefan Metzmacher <metze@samba.org>
Wed, 20 Jun 2012 06:45:42 +0000 (08:45 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 20 Jun 2012 10:58:57 +0000 (12:58 +0200)
metze

buildtools/wafsamba/irixcc.py

index a7b0a74d87c43024bc1414fbee45af4ca16e9e49..f3cb451fb0f73f206708ed50749cf450f30431b4 100644 (file)
@@ -22,11 +22,13 @@ def find_irixcc(conf):
     cc = conf.cmd_to_list(cc)
 
     try:
-        if Utils.cmd_output(cc + ['-version']) != '':
+        if Utils.cmd_output(cc + ['-c99'] + ['-version']) != '':
             conf.fatal('irixcc %r was not found' % cc)
     except ValueError:
         conf.fatal('irixcc -v could not be executed')
 
+    conf.env.append_unique('CCFLAGS', '-c99')
+
     v['CC']  = cc
     v['CC_NAME'] = 'irix'