September 26, 2016
https://issues.dlang.org/show_bug.cgi?id=16546

          Issue ID: 16546
           Summary: ordering of modules matters for pragma(lib) on linux
           Product: D
           Version: D2
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: timothee.cour2@gmail.com

module ordering on command line (or indirectly via a call to rdmd) shouldn't matter, but on linux it seems the ordering of '-lfoo -lbar' matters when foo depends on bar, one ordering giving undefined symbol errors.

what about providing a hook that allows user to postprocess the command line before calling the linker?

--