Mac OSX Library not loaded

Ludovic Silvestre <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
I don't know if this problem comes from luabind build process or from Boost Build (or maybe I'm doing something wrong), but building the library in Mac OSX isn't done the right way.

Basically, compiling and linking my application works fine. The problem comes when I execute the application, because it cannot find the library to load.

The linking command doesn't have the parameter 'install_name' to change the library's reference path. So the path is 'bin/darwin/debug' instead of the install prefix or the bjam parameter 'dll-path'.
The problem here is that when I install luabind library into '/opt/local/lib', every application that use luabind will be looking at 'bin/darwin/debug' to load the library because of the hardcoded reference (in fact it will search other places, but not /opt/local/lib) and it will fail, giving me a dyld error (Library not loaded).

I build luabind with this command: 'bjam --toolset=darwin --variant=release,debug --prefix=/opt/local install';

Am I doing something wrong or did I just found a bug in the build configuration?
------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.