Login | Register
My pages Projects Community openCollabNet

Discussions > SCons Development (OBSOLETE) > [scons-dev] Static and Dynamic Linking Mixed

Project highlights:

14 Nov 2017: Release 3.0.1 is now available at the download page.

18 Sep 2017: Release 3.0.0 is now available at the download page.

03 Nov 2016: Release 2.5.1 is now available at the download page.

scons
Discussion topic

Back to topic list

[scons-dev] Static and Dynamic Linking Mixed

Author webpost at tigris dot org
Full name webpost at tigris dot org
Date 2011-10-26 04:12:14 PDT
Message Hi everybody,

Some time ago there were discussions about mixed static and dynamic linking. I need to statically link my code, but need to dynamically link the OpenCL lib, as it is only available like that.

In 2009 jszakmeister proposed to implement a new way to explicitly state a library as static.

In 2008 it was proposed to override the _concat function to allow placement of library position between Bstatic and Bdynamic.

Was one of the two solutions ever implemented?
I could look into a small hack implementing the second way, if it was not done yet. I think this feature is really important, as the usually proposed solution: LIBS=['/path/to/file.a'] is not viable if you do not know the path.

Best,
Timo Strunk

References:

2008
Overriding the _concat function
http://scons.tigris.​org/ds/viewMessage.d​o?dsForumId=1272​&dsMessageId=98457

2009
new proposal
LIBS = [Static('lib1'), Static('lib2')]
http://scons.tigris.​org/ds/viewMessage.d​o?dsForumId=1268​&dsMessageId=2410721​

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

[scons-dev] Static and Dynamic Linking Mixed webpost at tigris dot org webpost at tigris dot org 2011-10-26 04:12:14 PDT
Messages per page: