diff options
author | Steven Knight <knight@baldmt.com> | 2005-08-24 17:33:37 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2005-08-24 17:33:37 (GMT) |
commit | 0f8064fbb31c680b4029dc2ffc4f0312b7ec766d (patch) | |
tree | 177094547c955f0e04f5bc0310a68c945c700759 /src/engine/SCons/Tool/sunc++.py | |
parent | 828f2bc8936354dfa67ef595efdcb7c5e43f8bf5 (diff) | |
download | SCons-0f8064fbb31c680b4029dc2ffc4f0312b7ec766d.zip SCons-0f8064fbb31c680b4029dc2ffc4f0312b7ec766d.tar.gz SCons-0f8064fbb31c680b4029dc2ffc4f0312b7ec766d.tar.bz2 |
On Solaris, enable the -KPIC option by default when compiling shared objects, and accomodate Sun Workshop by changing the prefix instead of the suffix. (Steve-o) Add the +Z option for compiling shared objects on HP-UX.
Diffstat (limited to 'src/engine/SCons/Tool/sunc++.py')
-rw-r--r-- | src/engine/SCons/Tool/sunc++.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/sunc++.py b/src/engine/SCons/Tool/sunc++.py index 22d01db..91c0f6c 100644 --- a/src/engine/SCons/Tool/sunc++.py +++ b/src/engine/SCons/Tool/sunc++.py @@ -33,6 +33,8 @@ selection method. __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" +import SCons.Util + import os.path cplusplus = __import__('c++', globals(), locals(), []) @@ -66,7 +68,9 @@ def generate(env): env['CXX'] = cxx env['SHCXX'] = shcxx env['CXXVERSION'] = version - env['SHOBJSUFFIX'] = '.os' + env['SHCXXFLAGS'] = SCons.Util.CLVar('$CXXFLAGS -KPIC') + env['SHOBJPREFIX'] = 'so_' + env['SHOBJSUFFIX'] = '.o' def exists(env): path, cxx, shcxx, version = get_cppc(env) |