3 # harald at klimachs.de
6 IBM XL Compiler for Blue Gene
9 from waflib
.Tools
import ccroot
,ar
10 from waflib
.Configure
import conf
12 from waflib
.Tools
import xlc
# method xlc_common_flags
13 from waflib
.Tools
.compiler_c
import c_compiler
14 c_compiler
['linux'].append('c_bgxlc')
18 cc
= conf
.find_program(['bgxlc_r','bgxlc'], var
='CC')
19 conf
.get_xlc_version(cc
)
21 conf
.env
.CC_NAME
= 'bgxlc'
26 conf
.xlc_common_flags()
27 conf
.env
.LINKFLAGS_cshlib
= ['-G','-Wl,-bexpfull']
28 conf
.env
.LINKFLAGS_cprogram
= []