[Issue 11342] shared libs don't play well with etc.c.zlib

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 28 01:19:21 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=11342


Artem Tarasov <lomereiter at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |


--- Comment #3 from Artem Tarasov <lomereiter at gmail.com> 2013-10-28 01:19:20 PDT ---
But it is linked against _shared_ version. Moreover, it is impossible to link
against libphobos2.a because it's not compiled with -fPIC.

I have to specify -L-lphobos2 on the command line just for that, otherwise DMD
tries to use static libphobos2.a, and linker barks that it should be recompiled
with -fPIC

> /usr/bin/ld: /home/artem/dmd2/linux/bin64/../lib64/libphobos2.a(lifetime_46c_6c8.o): relocation R_X86_64_32 against `_D15TypeInfo_Shared7__ClassZ' can not be used when making a shared object; recompile with -fPIC
> /home/artem/dmd2/linux/bin64/../lib64/libphobos2.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list