[Scons-users] How to augment the link step?

Bill Deegan bill at baddogconsulting.com
Mon Jun 13 21:41:14 EDT 2016


I think this should work...

output=env.SharedLibrary('target',['a.c','b.c'],LIBS=['boost_python'],CHANGE_LIB='lib/libboost_python.dylib')
env.AddPostAction(output, 'install_name_tools -change $CHANGE_LIB
@loader_path/${CHANGE_LIB.file} $TARGET')

-Bill

On Mon, Jun 13, 2016 at 6:20 PM, ljbo <luc_j_bourhis at mac.com> wrote:

> Bill Deegan-2 wrote
> > What exactly will the special operation do?
>
> Thanks for your prompt answer. I won't be able to try before tomorrow but I
> can answer your question. I would like to run the command
>
> install_name_tool -change lib/libboost_python.dylib
> @loader_path/libboost_python.dylib $path
>
> where "path" is the path to the shared library produced by
> env.SharedLibrary. That env has been set up with
>
> env.Append(LIBS=["boost_python"])
>
> among other things and ideally, I would like to avoid repeating
> "boost_python" in the command "install_tool_name ..."
>
>
>
> --
> View this message in context:
> http://scons.1086193.n5.nabble.com/How-to-augment-the-link-step-tp40059p40063.html
> Sent from the Users mailing list archive at Nabble.com.
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160613/4002285a/attachment-0001.html>


More information about the Scons-users mailing list