gdc and shared objects

Russel Winder via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jun 6 08:07:17 PDT 2017


using gdc (Debian 6.3.0-18) 6.3.0 20170516

I find:

gdc -I. -fPIC -c -o code.o code.d
gdc -o libanswer.so -shared code.o

leads to problems because the linker tries to link against:

/usr/lib/gcc/x86_64-linux-gnu/6/libgdruntime.a

instead of against one of:

/usr/lib/gcc/x86_64-linux-gnu/6/libgdruntime.so
/usr/lib/x86_64-linux-gnu/libgdruntime.so.68.0.2
/usr/lib/x86_64-linux-gnu/libgdruntime.so.68

I hope I am just missing an option as everything seems to be there fore
this to work.

-- 
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: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20170606/4f8fc8e1/attachment.sig>


More information about the Digitalmars-d-learn mailing list