[Scons-users] Diference between dynamic and static in linking time.
Manuel Naranjo
naranjo.manuel at gmail.com
Tue Apr 15 15:10:26 EDT 2014
Leandro,
> In linking time, I want to pass some libraries that should be linked as
> static, and others as dynamic. Are there some variables that help me to
> do this?
Depends on your toolchain, for gcc/ld you can use:
env.Append(LIBS=[Literal('-Wl,-Bdynamic'), <lib0>, <lib1>,....])
env.Append(LIBS=[Literal('-Wl,-Bstatic'), <lib0>, <lib1>,....])
Cheers from Rosario,
-Manuel
More information about the Scons-users
mailing list