clang, change dependent shared library install name at link time
问题 Related, but do not answer the question: How do I modify the install name of a .dylib at build time On OSX, I have a dynamic library provided by a packager manager, installed in a non standard directory, which install_name is just the filename. For example: $ ROOT=$PWD $ mkdir $ROOT/foo $ cd $ROOT/foo $ echo 'int foo(int a, int b){return a+b;}' > foo.c $ clang foo.c -dynamiclib -install_name libfoo.dylib -o libfoo.dylib I don't want to change (absolute path, @RPATH, ...) the install_name of