Summary
I want to run my cross-compiled application against 10.5 libraries. Is there an environment variable that allows this to work?
Longer version
I cross-compiled an OS X C ++ application for target 10.5 on host 10.6. It compiles fine. The compiled application is linked to libraries such as /usr/lib/libstdc++.6.dylib . When I run it on my system, it will use the version of the "host" libraries, which is 10.6. I would like to check it on version 10.5, which are all contained in the `/Developer/SDKs/MacOSX10.5.sdk directory. How to do it?
I tried various options of DYLD_LIBRARY_PATH, DYLD_ROOT_PATH, etc., as documented in the manual , but I was not able to get it to work.
c ++ libraries linker loader macos
Paul biggar
source share