rpath options to linkers, OSX issue

Russel Winder via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 6 08:51:51 PDT 2014


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.

I am assuming the problem is in my OSX set up and not in what dmd is
doing. I get dmd via MacPorts, it is v2.066-devel.

Is there an OSX user out there having no problem with dmd and dynamic
libraries I can prevail upon to give me a hand with this? 

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140906/92052eff/attachment.sig>


More information about the Digitalmars-d mailing list