Ivan Levashew wrote: > Paolo Bonzini wrote: >> >> Properly fixing this would require hacking Apple's install_name_tool >> into libtool. >> > Not a problem, I suppose. I have a proof of concept solution: > > http://mid.gmane.org/1224052823.48f5905744a99%40mail.bluebottle.com > > My problem is that --enable-relocatable is not present in GTK+ > libraries.
This is something that you have to fix in GTK+. What I suggest is to avoid gnulib's autoconf macros (rewrite them) but keep its relocatable.c file. You need to add to GTK+ the code to use the relocate functions when finding the resources related to the library. This needs to find the library path, which relocatable.c does but not on Mac OS X; adding this feature would be a good task for gnulib too. For programs' resources instead the resources should be found in a path related to the program's path. You can also use the relocatable.c file here. In general, this part is easier to do since most platforms including Mac OS X have a way to find the executable. Paolo