libgphobos2 doesn't respect the --enable-shared

mrgojira avatarmrgojira created an issue

I was trying to build a shared lib with a 64 bit d2 installation from the current codebase and I'm running into what looks to be an error related to libghpobos2 not being built as a shared lib (or more pointedly I haven't been able to enable PIC in the lib.

Are shared libs supported at this point? I remember being able to build them with the original gdc.

Here's the output: gdc -shared -fPIC -o testlib2/dylib.d /usr/bin/ld: /home/bkropf/Development/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.4/../../../../lib64/libgphobos2.a(deh.o): relocation R_X86_64_32 against `_D39TypeInfo_AS3gcc3deh18OurUnwindException6initZ' can not be used when making a shared object; recompile with -fPIC /home/bkropf/Development/local/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.3.4/../../../../lib64/libgphobos2.a: could not read symbols: Bad value

Comments (3)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.