Francesco Montorsi wrote: > But I'm unsure this is really necessary and instead I think it's nice > to > have the rpath stuff also under Mac (so that you can run binaries when > you compile wxLua before installing system-wide)...
There is a "rpath" of sorts in older Mac OS X too, and it can be tweaked by using install_name_tool on the binaries after building for instance*. If you look at the wxLua "distrib/macbundle/copydylibs.command" script, it changes the location of the libs when installing the .dylib (=.so) It changes the default linker path of /usr/local/lib/libfoo.dylib into a local path like @executable_path/../../../libfoo.dylib (where the "@executable_path" string is automagically replaced with the location of the current program, on application start) The extra two .. levels is for "wxFoo.app/Contents/MacOS/wxFoo", i.e. to break out of the directory structure of the app bundle --anders * it can be set when building too, but I never got around to hacking the necessary flags to do so into the Makefile :-) ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users