[Issue 16546] New: ordering of modules matters for pragma(lib) on linux

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Sep 26 12:00:01 PDT 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 at puremagic.com
          Reporter: timothee.cour2 at 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?

--


More information about the Digitalmars-d-bugs mailing list