Hi,
I'm having some trouble getting a conda package built properly using OpenMP on OS X.
My setup is basically:
My build requirements include gcc; install requirements include libgcc.
In build.sh, I set CC=gcc.
The python extension (via cython) that uses OpenMP is then built with gcc, and it all builds seemingly successfully.
When conda-build then goes to import the module in testing, though, I get:
ImportError: dlopen(/Users/dsutherl/.python-eggs/mmd-0.1.1-py2.7-macosx-10.5-x86_64.egg-tmp/mmd/_mmd.so, 2): Library not loaded: @rpath/./libgomp.1.dylib
Referenced from: /Users/dsutherl/.python-eggs/mmd-0.1.1-py2.7-macosx-10.5-x86_64.egg-tmp/mmd/_mmd.so
Reason: image not found
libgomp.1.dylib is in the expected place (anaconda/lib/), but @rpath seems to not be pointing there.
(I see the same behavior if I try to install with a homebrew-installed GCC with anaconda; it works with homebrew-installed GCC against system python, and also in anaconda on Linux.)
Is there something else I need to do to get this to work? I'm finding the documentation about @rpath in general on OSX to be quite cryptic.
The current version of the package + recipe, which is quite small and so nearly a minimal example, is
here.
Thanks,
Dougal