[Issue 20244] New dmd option -preview=noXlinker does not work on Linux to build a simple D application

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 26 04:21:40 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=20244

Mike Franklin <slavo5150 at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |slavo5150 at yahoo.com

--- Comment #3 from Mike Franklin <slavo5150 at yahoo.com> ---
That's correct.  The `--export-dynamic` option is coming from the config file. 
Therefore if you use `-preview=noXlinker` you'll need to compensate by adding
the `-Xlinker` argument to the dmd.conf file.

This dmd.conf file works for me when compiling with `-preview=noXlinker`

[Environment32]
DFLAGS=-I%@P%/../../../../../druntime/import -I%@P%/../../../../../phobos
-L-L%@P%/../../../../../phobos/generated/linux/release/32 -L-Xlinker
-L-L--export-dynamic

[Environment64]
DFLAGS=-I%@P%/../../../../../druntime/import -I%@P%/../../../../../phobos
-L-L%@P%/../../../../../phobos/generated/linux/release/64 -L-Xlinker
-L-L--export-dynamic -fPIC

--


More information about the Digitalmars-d-bugs mailing list