[Issue 15574] wrong order of linker arguments breaks with as-needed

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jan 17 10:23:35 PST 2016


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

--- Comment #1 from Martin Nowak <code at dawg.eu> ---
We should pass any linker arguments in the same order as they were passed to
dmd.
This requires some refactoring of command line parsing and link part.

For pragma(lib) we can only choose between prepending and appending them, both
of which has issues. But appending seems like the better choice (so you can add
library paths with -L-L) and pragma(lib) shouldn't be used anyhow.

--


More information about the Digitalmars-d-bugs mailing list