I aim to have full runpaths in compiled boost libraries by providing dll-path
option when compiling boost:
$ ./b2 dll-path=$(pwd)/build --prefix=$(pwd)/build
$ ./b2 install dll-path=$(pwd)/build --prefix=$(pwd)/build
However, when I check libraries in $(pwd)/build
folder I get this:
$ otool -L build/lib/libboost_system.dylib
build/lib/libboost_system.dylib:
libboost_system.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
I.e. instead of full path with lib name, there is just lib name (libboost_system.dylib). How one should use dll-path
option or is there an "official" way to achieve this (other than having a script which manually runs install_name_tool
on each library)?