Compile options

Russel Winder via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Fri Jun 19 15:43:13 PDT 2015


On Fri, 2015-06-19 at 18:56 +0000, John Colvin via digitalmars-d-ldc
wrote:
> On Friday, 19 June 2015 at 14:28:42 UTC, Russel Winder wrote:
> > As far as I know, the default options for compiling the files 
> > for the archive on Fedora and Debian does not include -fPIC. To 
> > compile PyD things with ldc the .a archive has to have -fPIC 
> > since a shared object is being created. Am I just building LDC 
> > from Git incorrectly?
> 
> Shouldn't you be linking to the .so anyway?

That would be my choice :-)

> 
> cmake ../ -DBUILD_SHARED_LIBS=true

Aha, that is what I was missing. I should have guessed that. I shall
claim that my brain is too highly trained.

-- 
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-ldc/attachments/20150619/75997a9a/attachment.sig>


More information about the digitalmars-d-ldc mailing list