discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some general questions


From: Matt Rice
Subject: Re: Some general questions
Date: Tue, 24 May 2011 19:59:39 -0700

On Tue, May 24, 2011 at 6:58 PM, Matt Rice <ratmice@gmail.com> wrote:
> On Tue, May 24, 2011 at 1:51 PM, David Chisnall <theraven@sucs.org> wrote:
>
>>> 3) What are the acceptable locations for GNUstep frameworks to be stored? I 
>>> read the article about how frameworks are done a little differently in 
>>> GNUstep, but can frameworks still be placed in the .app/Frameworks/ 
>>> .app/Contents/Frameworks directory?
>>
>> This will not work.  On OS X, this works because dyld understands 
>> @executable_path as a magic symbol location.  No other runtime loader that 
>> I'm aware of supports this.
>
> most elf loaders should support the ${ORIGIN} substitution sequence.

sorry should have explained better...

basically you link your library with the
-Wl,-soname=\${ORIGIN}/path/from/executable/to/framework
or your executable using an rpath containing
${ORIGIN}/path/from/executable/to/framework,

(some random amount of shell/makefile escaping will be required.)
see: http://ynform.org/w/Pub/TheTroubleWithOrigin
then link your library normally.

http://uw714doc.sco.com/en/SDK_cprog/OF_ShObjDependencies.html#OF_ShObjSequences

or the elf gabi.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]