How do I modify the install name of a .dylib at build time

末鹿安然 提交于 2019-11-29 04:31:41

Generally, passing linker arguments through g++ must be prefaced with -Wl and spaces must be replaced with commas. So, if you want to pass "-install_name /tmp/temp.dylib" to the linker you will need to call this:

g++ -Wl,-install_name,/tmp/temp.dylib ...
Nick X

one possible approach would be editing the config.status manually. but before I try to do that, install_name_tool -id saved my life.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!