Summary: New ubuntu linking rules prevent dmd from linking
programs on Ubuntu 11.10
--- Comment #0 from Steven Schveighoffer <schvei...@yahoo.com> 2011-10-17
05:42:28 PDT ---
I recently upgraded to Ubuntu 11.10, and dmd complains during link that
functions defined in -lrt are missing.
using dmd -v, I get:
gcc testbool.o -o testbool -m32 -Xlinker
--no-warn-search-mismatch -Xlinker --export-dynamic -lrt -lphobos2 -lpthread
Note that -lrt comes before -lphobos2, where the functions are needed.
I'm not sure how the compiler worked on ubuntu 11.04 (the previous release),
but apparently there are stricter rules.
I don't know how to fix this, you want to be able to link libs before and after
phobos is specified on the command line, so we may need to either explicitly
name phobos2 in the dmd.conf, or have two sets of DFLAGS.
However, as of now, I cannot link anything without using -v and manually
running the link step, adding -lrt to the end.
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------