www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15574] New: wrong order of linker arguments breaks with


          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 puremagic.com
          Reporter: code dawg.eu

Refer to
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.

Jan 17 2016