[Issue 15574] wrong order of linker arguments

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Nov 18 09:09:37 PST 2016


https://issues.dlang.org/show_bug.cgi?id=15574

John Colvin <john.loughran.colvin at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|wrong order of linker       |wrong order of linker
                   |arguments breaks with       |arguments
                   |as-needed                   |

--- Comment #3 from John Colvin <john.loughran.colvin at gmail.com> ---
This problem isn't actually specific to --as-needed, because the following
happens with or without it:

Given myLib.a, putting -lmyLib before otherLibThatNeedsMyLib.a on the linker
command line will (normally) fail to link, because - working from left to right
on the command line - symbols from libraries passed by -l are not kept around
unless something has already needed them.

--


More information about the Digitalmars-d-bugs mailing list