Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 191438

Summary: sys-devel/gcc - gdc: phobos only gets build as non-PIC
Product: Gentoo Linux Reporter: Mario Kicherer <dev>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Mario Kicherer 2007-09-05 20:57:45 UTC
Hi,

I use gcc with the "D" useflag. After switching from a x86 to an amd64 pc (intel core2duo) i recognized the problem that i can't load shared libraries that are linked against phobos. After some research i saw that phobos gets build as a static library and somebody told me that loading static libraries in  shared libraries is only possible on x86 and not on amd64. 

I've tried to patch gdc by myself (and recompiled gcc several times the last days...) but i didn't get it. :/

So I would be very happy if someone would so kind as to write a patch.

Thank you very much!



Reproducible: Always
Comment 1 SpanKY gentoo-dev 2007-09-05 22:14:47 UTC
first, modify the gcc-4.1.2 ebuild so it reads:
D_VER=0.24

then rebuild gcc-4.1.2

if it still doesnt work, open a bug report here:
http://sourceforge.net/tracker/?group_id=154306&atid=791252