[Issue 1057] Can't build on x86_64 without --disable-shared
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Oct 27 14:03:41 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1057
------- Comment #1 from martinxyz at gmx.ch 2007-10-27 16:03 -------
I can build without --disable-shared, but when trying to create a -shared
object the linker tells me that I have to rebuild phobos with -fPIC.
As a workaround you can compile everything with -fPIC, which should not hurt so
much on AMD64. Execute this command in the gcc directory (not in gcc/d/ but
gcc/d/ must already exist):
find -name 'configure*' |grep -v .svn | xargs perl -p -i -e 's/-O2/-O2 -fPIC/g'
I really hope someone will find a clean solution.
--
More information about the D.gnu
mailing list