Skip to content

Commit

Permalink
Merge branch 'soversion_for_soname_libs' of github.com:dmoody256/scon…
Browse files Browse the repository at this point in the history
…s into soversion_for_soname_libs
  • Loading branch information
bdbaddog committed Jul 27, 2020
2 parents b275342 + 0fa4feb commit 41ae370
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions SCons/Tool/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,14 +673,10 @@ class _LibSonameGenerator(_LibInfoGeneratorBase):
"""Library soname generator. Returns library soname (e.g. libfoo.so.0) for
a given node (e.g. /foo/bar/libfoo.so.0.1.2)"""

def __init__(self, libtype=None):
def __init__(self, libtype):
super(_LibSonameGenerator, self).__init__(libtype, 'Soname')

def __call__(self, env, libnode, *args, **kw):
# we can differentiate the type of this generator at the call time
# allowing us to decide this information during subst expansion
self.libtype = kw.get('libtype', self.libtype)

def __call__(self, env, libnode, **kw):
"""Returns a SONAME based on a shared library's node path"""
Verbose = False

Expand Down

0 comments on commit 41ae370

Please sign in to comment.