Ubuntu dmd 2.065 amd64 linkage problem.
Carl Sturtivant
sturtivant at gmail.com
Sat Mar 15 19:12:36 PDT 2014
Back at 2.062 I was able to force the whole of D's runtime/phobos
into an executable which was exactly what I wanted for a specific
project containing not just D but around 50,000 lines of C. (This
is to do with having dynamic libraries link back to the
executable when they're loaded with dlopen, so they don't need
their own runtime/phobos on board.) However, at 2.065 this
doesn't happen any more. I need this same linkage with 2.065.
Previously I used
-Wl,--whole-archive -lphobos2 -Wl,--no-whole-archive
on a gcc command line to link all the objects in the project
along with libphobos2, with
-lcurl -lpthread -lm -lrt
to satisfy that linkage, and this had the desired effect. But now
this doesn't do the job of linking the whole of D's runtime &
phobos any more. Any suggestions how I can get the old result
with 2.065?
More information about the Digitalmars-d-learn
mailing list