[Issue 15574] New: wrong order of linker arguments breaks with as-needed
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Jan 17 07:49:14 PST 2016
https://issues.dlang.org/show_bug.cgi?id=15574
Issue ID: 15574
Summary: wrong order of linker arguments breaks with as-needed
Product: D
Version: D2
Hardware: All
OS: Linux
Status: NEW
Severity: blocker
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: code at dawg.eu
Refer to
https://github.com/D-Programming-Language/dlang.org/pull/1195#issuecomment-172342018
for more details.
Basically dmd puts libraries like -L-levent in front of any object files or
static libraries, which always leads to link errors when used w/ --as-needed
b/c the libraries aren't preceded by anything that requires them.
Linking w/ --as-needed is the default on Ubuntu, so dmd is effectively unable
to use external libraries on Ubuntu.
--
More information about the Digitalmars-d-bugs
mailing list