3 # WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file
7 # Thomas Nagy, 2006-2016 (ita)
8 # Ralf Habacker, 2006 (rh)
10 from waflib.Tools import ccroot, ar
11 from waflib.Configure import conf
16 Detects the sun C++ compiler
19 cc = conf.find_program(['CC', 'c++'], var='CXX')
21 conf.cmd_and_log(cc + ['-flags'])
23 conf.fatal('%r is not a Sun compiler' % cc)
25 conf.get_suncc_version(cc)
28 def sxx_common_flags(conf):
30 Flags required for executing the sun C++ compiler
35 v.CXX_TGT_F = ['-c', '-o', '']
41 v.CXXLNK_TGT_F = ['-o', '']
45 v.LIB_ST = '-l%s' # template for adding libs
46 v.LIBPATH_ST = '-L%s' # template for adding libpaths
48 v.STLIBPATH_ST = '-L%s'
50 v.SONAME_ST = '-Wl,-h,%s'
51 v.SHLIB_MARKER = '-Bdynamic'
52 v.STLIB_MARKER = '-Bstatic'
54 v.cxxprogram_PATTERN = '%s'
56 v.CXXFLAGS_cxxshlib = ['-xcode=pic32', '-DPIC']
57 v.LINKFLAGS_cxxshlib = ['-G']
58 v.cxxshlib_PATTERN = 'lib%s.so'
60 v.LINKFLAGS_cxxstlib = ['-Bstatic']
61 v.cxxstlib_PATTERN = 'lib%s.a'
66 conf.sxx_common_flags()