rpath options to linkers, OSX issue

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Sun Sep 7 06:05:39 PDT 2014


On 2014-09-06 17:51, Russel Winder via Digitalmars-d wrote:
> Ariovistus originally reported Issue 2940 against SCons and the D
> toolset (http://scons.tigris.org/issues/show_bug.cgi?id=2940). The gdc
> tool uses "-Wl,-rpath=." in the gdc command to set the rpath for gdc.
> The dmd tool uses "-L-rpath=." in the dmd command to set the rpath for
> dmd.
>
> This all works fine on Linux. I haven't managed to find a way to test
> this on Windows.
>
> It seems for the first time (which surprised me as I thought I had
> checked this), I am running the tests on OSX and "-L-rpath=." generates
> "-rpath=." to the ld which is Clang and it rejects this option.

It works for me with "-rpath .", note the absence of the equals sign.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list