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: nob...@puremagic.com Reporter: c...@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. --