Trying to load shared lib from current '.' dir in unit test on osx.
What works with Linux and Netbsd, there is a symbolic link _mymodule.so --> ../.libs/libmymodule.so
but in osx, python import mymodule will not find
_mymodule.dylib
I tried adding
export DYLD_LIBRARY_PATH=.:$DYLD_LIBRARY_PATH
in script env, nogo. Any help was appreciated.
Red
update 4/6/10:
Solved with information from krunk below. But just copying or including dylib in the .so name did not solve it completely. All the same, it did not boot. But telling libtool to bind lib to the -module flag created by .so lib to be loaded. Now the lib version in Python is working.
Now, if I could just run perl lib. I am creating swig perl, python, ruby ββand lua libs, and this fix only worked for python and lua.
python dylib macos
navicore
source share