From: <af...@al...> - 2008-01-14 22:39:40
|
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 :-) |