What are the default search directories to link a library on Mac OS X

后端 未结 1 715
悲哀的现实
悲哀的现实 2021-01-12 01:27

I\'ve build the Google Test with CMake on Mac OS X and get two shared libraries: libgtest.dylib and libgtest_main.dylib. And now I need install both them.

相关标签:
1条回答
  • 2021-01-12 02:09

    Take a look at the default values for environment variables used by the dyld linker:

    DYLD_FALLBACK_LIBRARY_PATH
       ...
    By default, it is set to $(HOME)/lib:/usr/local/lib:/lib:/usr/lib

    This article about "Deploying an Application on Mac OS X" and other article about "Mac OS X installers" may also help.

    0 讨论(0)
提交回复
热议问题