[D-runtime] Time for druntime for Linux64 to default to a shared lib
Andrei Alexandrescu
andrei at erdani.com
Wed Mar 13 10:43:32 PDT 2013
This is absolutely fantastic, many thanks to everyone involved and
Martin in particular!
One question - shouldn't we preserve the current default (static linking
throughout)? Last thing I want is to hear naysayers clamoring how we
threw them in DLL hell whereas other languages (which don't support DLLs
in the first place) don't.
Dynamic linking is a great option and possibly the best way going
forward, but at least for the time being let's not make it the default
until we make it rock solid.
Thanks,
Andrei
On 3/13/13 3:01 AM, Walter Bright wrote:
> Thanks to the efforts of Martin Nowak (dawgfoto) I have been able to
> build druntime as a shared library under Linux64 and get it to
> successfully run the test suite.
>
> Therefore, it's now time to make this now the default. This requires
> some changes to the makefiles for druntime, phobos, and some tweaks to dmd.
>
> druntime:
> PIC needs to default to -fPIC
> dll is now the default build
>
> phobos:
> DRUNTIME needs to default to being nothing
>
> dmd:
> prepend "-ldruntime-linux64" to the list of standard libraries passed to
> the linker
>
> dmd.conf:
> needs -L-Lpath/druntime/lib added to DFLAGS
>
> and,
> export LD_LIBRARY_PATH=path/druntime/lib
> needs to be executed by the user.
>
> Once this is all working for Linux64, we can extend it to the other
> platforms.
> _______________________________________________
> D-runtime mailing list
> D-runtime at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/d-runtime
More information about the D-runtime
mailing list