Compile options

John Colvin via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Fri Jun 19 11:56:31 PDT 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


More information about the digitalmars-d-ldc mailing list