[cfe-commits] r108672 - in /cfe/trunk: test/Driver/at_file.c test/Driver/at_file.c.args tools/driver/driver.cpp
daniel at zuster.org
Mon Jul 19 08:10:34 PDT 2010
2010/7/19 Rafael Espíndola <rafael.espindola at gmail.com>:
> On 19 July 2010 03:18, Daniel Dunbar <daniel at zuster.org> 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, at 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.
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
More information about the cfe-commits