rpath options to linkers, OSX issue

David Nadlinger via Digitalmars-d digitalmars-d at puremagic.com
Sun Sep 7 08:11:33 PDT 2014


On Saturday, 6 September 2014 at 15:52:03 UTC, Russel Winder via 
Digitalmars-d wrote:
> I am running the tests on OSX and "-L-rpath=." generates
> "-rpath=." to the ld which is Clang and it rejects this option.

Just FYI, the linker, as in the ld binary, is not part of Clang. 
Instead, Apple have their own "ld64" linker: 
http://www.opensource.apple.com/source/ld64/. Of course, DMD 
invokes it via "gcc", which tends to be Clang on newer systems.

As for your actual question, I think "-L-rpath -L." should work.

David


More information about the Digitalmars-d mailing list