Changeset 988 for vendor/current/buildtools/wafsamba/irixcc.py
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/buildtools/wafsamba/irixcc.py
r740 r988 14 14 @conftest 15 15 def find_irixcc(conf): 16 17 18 19 20 21 22 16 v = conf.env 17 cc = None 18 if v['CC']: cc = v['CC'] 19 elif 'CC' in conf.environ: cc = conf.environ['CC'] 20 if not cc: cc = conf.find_program('cc', var='CC') 21 if not cc: conf.fatal('irixcc was not found') 22 cc = conf.cmd_to_list(cc) 23 23 24 25 if Utils.cmd_output(cc+ ['-version']) != '':26 27 28 24 try: 25 if Utils.cmd_output(cc + ['-c99'] + ['-version']) != '': 26 conf.fatal('irixcc %r was not found' % cc) 27 except ValueError: 28 conf.fatal('irixcc -v could not be executed') 29 29 30 v['CC'] = cc 31 v['CC_NAME'] = 'irix' 30 conf.env.append_unique('CCFLAGS', '-c99') 31 32 v['CC'] = cc 33 v['CC_NAME'] = 'irix' 32 34 33 35 @conftest 34 36 def irixcc_common_flags(conf): 35 37 v = conf.env 36 38 37 38 39 39 v['CC_SRC_F'] = '' 40 v['CC_TGT_F'] = ['-c', '-o', ''] 41 v['CPPPATH_ST'] = '-I%s' # template for adding include paths 40 42 41 42 43 44 43 # linker 44 if not v['LINK_CC']: v['LINK_CC'] = v['CC'] 45 v['CCLNK_SRC_F'] = '' 46 v['CCLNK_TGT_F'] = ['-o', ''] 45 47 46 47 48 49 50 48 v['LIB_ST'] = '-l%s' # template for adding libs 49 v['LIBPATH_ST'] = '-L%s' # template for adding libpaths 50 v['STATICLIB_ST'] = '-l%s' 51 v['STATICLIBPATH_ST'] = '-L%s' 52 v['CCDEFINES_ST'] = '-D%s' 51 53 52 # 53 # 54 # 54 # v['SONAME_ST'] = '-Wl,-h -Wl,%s' 55 # v['SHLIB_MARKER'] = '-Bdynamic' 56 # v['STATICLIB_MARKER'] = '-Bstatic' 55 57 56 57 58 # program 59 v['program_PATTERN'] = '%s' 58 60 59 60 # 61 # 62 61 # shared library 62 # v['shlib_CCFLAGS'] = ['-Kpic', '-DPIC'] 63 # v['shlib_LINKFLAGS'] = ['-G'] 64 v['shlib_PATTERN'] = 'lib%s.so' 63 65 64 65 # 66 # 66 # static lib 67 # v['staticlib_LINKFLAGS'] = ['-Bstatic'] 68 # v['staticlib_PATTERN'] = 'lib%s.a' 67 69 68 70 detect = '''
Note:
See TracChangeset
for help on using the changeset viewer.