Thread overview
Compile options
Jun 19, 2015
Russel Winder
Jun 19, 2015
John Colvin
Jun 19, 2015
Russel Winder
June 19, 2015
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?

-- 
Russel.
=============================================================================
Dr Russel Winder     t:+44 20 7585 2200   voip:sip:
russel.winder@ekiga.net
41 Buckmaster Road   m:+44 7770 465 077   xmpp:russel@winder.org.uk
London SW11 1EN, UK  w: www.russel.org.uk skype:russel_winder


June 19, 2015
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?

cmake ../ -DBUILD_SHARED_LIBS=true
June 19, 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@ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder