3 # WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file
7 # Thomas Nagy, 2006-2018 (ita)
8 # Ralf Habacker, 2006 (rh)
10 from waflib import Errors
11 from waflib.Tools import ccroot, ar
12 from waflib.Configure import conf
17 Detects the sun C++ compiler
20 cc = conf.find_program(['CC', 'c++'], var='CXX')
22 conf.cmd_and_log(cc + ['-flags'])
23 except Errors.WafError:
24 conf.fatal('%r is not a Sun compiler' % cc)
26 conf.get_suncc_version(cc)
29 def sxx_common_flags(conf):
31 Flags required for executing the sun C++ compiler
36 v.CXX_TGT_F = ['-c', '-o', '']
42 v.CXXLNK_TGT_F = ['-o', '']
46 v.LIB_ST = '-l%s' # template for adding libs
47 v.LIBPATH_ST = '-L%s' # template for adding libpaths
49 v.STLIBPATH_ST = '-L%s'
51 v.SONAME_ST = '-Wl,-h,%s'
52 v.SHLIB_MARKER = '-Bdynamic'
53 v.STLIB_MARKER = '-Bstatic'
55 v.cxxprogram_PATTERN = '%s'
57 v.CXXFLAGS_cxxshlib = ['-xcode=pic32', '-DPIC']
58 v.LINKFLAGS_cxxshlib = ['-G']
59 v.cxxshlib_PATTERN = 'lib%s.so'
61 v.LINKFLAGS_cxxstlib = ['-Bstatic']
62 v.cxxstlib_PATTERN = 'lib%s.a'
67 conf.sxx_common_flags()