2010/7/19 Rafael Espíndola <[email protected]>:
> On 19 July 2010 03:18, Daniel Dunbar <[email protected]> wrote:
>> Hi Rafael,
>>
>> I discovered a problem with this approach, unfortunately. For example,
>> it turns out this completely breaks stuff like:
>>  $ clang -Xlinker -rpath -Xlinker @rpath/foo ...
>>
>> I should have thought of this sooner -- I think this is why my
>> original plan was to handle it inside the argument parsing routines.
>>
>> I'm going to revert it for now until we figure out another solution.
>
> That is interesting. What does the apple gcc does? With regular gcc I
> always see the above line written as
>
> $ gcc -Wl,-rpath -Wl,@rpath/foo ...
>
> btw, what is the @rpath thing on the apple linker? On the gnu one it
> expands the options by reading a file (just like gcc).

@rpath is part of the option, it is a magic variable for dyld.
--
     -rpath path
                 Add path to the runpath search path list for image
being created.  At
                 runtime, dyld uses the runpath when searching for
dylibs whose load path
                 begins with @rpath/.
--

 - Daniel

>
>>  - Daniel
>
> Cheers,
> Rafael
>

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to