[Scons-users] -install_name on OSX for dnyamic libraries

edA-qa mort-ora-y eda-qa at disemia.com
Mon Aug 7 13:55:24 EDT 2017


I've figured out on OSX how to build shared libraries using RPATH, but
now I have to convince scons to pass the appropriate options to the linker.

To build a library that is loaded relative to the RPATH:

   g++ -o build/libhello.dylib -install_name @rpath/libhello.dylib
-dynamiclib build/src/hello.os -Lbuild

To link the main executable:

   g++ -o build/dohello build/src/main.o -Lbuild -lhello
-Wl,-rpath, at executable_path


I don't see how I can pass in an `install_name` to the SharedLibrary
construct.


-- 
edA-qa mort-ora-y 
http://mortoray.com/

Leaf - the language we always wanted
http://leaflang.org/



More information about the Scons-users mailing list