digitalmars.D.bugs - [Issue 19724] New: Regression: wrong order of linker arguments,
- d-bugmail puremagic.com (28/28) Mar 07 2019 https://issues.dlang.org/show_bug.cgi?id=19724
https://issues.dlang.org/show_bug.cgi?id=19724 Issue ID: 19724 Summary: Regression: wrong order of linker arguments, again: -L-l before -L--start-group Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: default_357-line yahoo.de When explicitly specifying libraries to be passed to the linker, they are reordered to the end. That's bad, because it breaks -L=--start-group and -L=--end-group. Linker groups define a set of libraries that are evaluated circularly until all symbols are resolved. Repro: touch test.d dmd -L=--start-group -L=-lfoo -L=--end-group Expected: cc -Xlinker --start-group -lfoo -Xlinker --end-group Actual: cc -Xlinker --start-group -Xlinker --end-group -lfoo This is obviously quite useless. --
Mar 07 2019