SCons: ability to define additional libraries in a flexible way
This commit is contained in:
parent
c848903fea
commit
c7d6ab423f
1 changed files with 4 additions and 0 deletions
|
|
@ -270,6 +270,8 @@ class LumieraExeBuilder(WrappedStandardExeBuilder):
|
|||
"""
|
||||
custEnv = lumiEnv.Clone()
|
||||
custEnv.Append( LINKFLAGS = "-Wl,-rpath=\\$$ORIGIN/modules,--enable-new-dtags" )
|
||||
if 'addLibs' in kw:
|
||||
custEnv.Append(LIBS = kw['addLibs'])
|
||||
return custEnv
|
||||
|
||||
def getBuildDestination(self, lumiEnv): return lumiEnv.path.buildExe
|
||||
|
|
@ -286,6 +288,8 @@ class LumieraModuleBuilder(WrappedStandardExeBuilder):
|
|||
"""
|
||||
custEnv = lumiEnv.Clone()
|
||||
custEnv.Append(LINKFLAGS = "-Wl,-soname="+self.defineSoname(target,**kw))
|
||||
if 'addLibs' in kw:
|
||||
custEnv.Append(LIBS = kw['addLibs'])
|
||||
return custEnv
|
||||
|
||||
def getBuildDestination(self, lumiEnv): return lumiEnv.path.buildLib
|
||||
|
|
|
|||
Loading…
Reference in a new issue