Re: Relocatable packages, once again

2009-02-11 Thread Ivan Levashew
Paolo Bonzini wrote: 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. _NSGetExec

Re: Relocatable packages, once again

2009-02-11 Thread Ivan Levashew
Paolo Bonzini wrote: 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. _NSGetExec

Re: Relocatable packages, once again

2009-02-11 Thread Ivan Levashew
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

Relocatable packages, once again

2009-02-11 Thread Ivan Levashew
On Mac OS X, relocatability is a must. Mac OS X has own means of making relocatable bundles, but they don't fill well into gnu-lib relocatability model. It is indeed possible to make relocatable bundle, but it's not always trivial. gnu-lib doesn't support Mac OS X relocatability model at the m