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