[Issue 5278] gentoo's 'hardended' gcc doesn't work with dmd

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 21 22:51:03 PST 2012


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



--- Comment #22 from dawg at dawgfoto.de 2012-01-21 22:50:46 PST ---
What's linker flags are passed by gcc if you use --export-dynamic vs. not using
it?

dmd -c main
----------
gcc main.o -o main -m32 -Xlinker
-L/usr/local/share/dcompilers/dmd/linux/bin32/../lib32 -Xlinker
-L/usr/local/share/dcompilers/dmd/linux/bin32/../lib64 -Xlinker
--no-warn-search-mismatch -Xlinker --export-dynamic -lphobos2 -lpthread -lm
-lrt -v
----------
vs.
----------
gcc main.o -o main -m32 -Xlinker
-L/usr/local/share/dcompilers/dmd/linux/bin32/../lib32 -Xlinker
-L/usr/local/share/dcompilers/dmd/linux/bin32/../lib64 -Xlinker
--no-warn-search-mismatch -lphobos2 -lpthread -lm -lrt -v
----------

Also did passing -fno-pie to gcc resolve your problems?

-- 
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