diff options
author | Alexandre Feblot <devnull@localhost> | 2014-11-12 20:49:33 (GMT) |
---|---|---|
committer | Alexandre Feblot <devnull@localhost> | 2014-11-12 20:49:33 (GMT) |
commit | 783d0c52593e21f8cdee0f314d9c7534315ea740 (patch) | |
tree | 3b72b5f11674b3598c0585288e74fde5da9cd0e1 /src/engine/SCons/Tool/__init__.py | |
parent | a077d347e339f38cd5559252c0234b63370bf567 (diff) | |
download | SCons-783d0c52593e21f8cdee0f314d9c7534315ea740.zip SCons-783d0c52593e21f8cdee0f314d9c7534315ea740.tar.gz SCons-783d0c52593e21f8cdee0f314d9c7534315ea740.tar.bz2 |
also set soname on sunos
Diffstat (limited to 'src/engine/SCons/Tool/__init__.py')
-rw-r--r-- | src/engine/SCons/Tool/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/engine/SCons/Tool/__init__.py b/src/engine/SCons/Tool/__init__.py index 81c052f..c6da57d 100644 --- a/src/engine/SCons/Tool/__init__.py +++ b/src/engine/SCons/Tool/__init__.py @@ -317,6 +317,11 @@ symlinks for the platform we are on""" shlink_flags += [ '-Wl,-soname=%s' % soname ] if Verbose: print " soname ",soname,", shlink_flags ",shlink_flags + elif platform == 'sunos': + suffix_re = re.escape(shlib_suffix + '.' + version) + (major, age, revision) = version.split(".") + soname = re.sub(suffix_re, shlib_suffix, libname) + '.' + major + shlink_flags += [ '-h', soname ] elif platform == 'cygwin': shlink_flags += [ '-Wl,-Bsymbolic', '-Wl,--out-implib,${TARGET.base}.a' ] |