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

Mike Wey <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Mike Wey <[email protected]> ---
While pretending would solve the problems for the library paths, it will cause
problems with the actual libraries. (at leased with GNU ld).

This because libraries are only searched once for undefined symbols and in the
order in which they appear on the command line.

So if you are linking to a D library -lphobos should appear on the command line
after the d library and libraries phobos depends on after that.

One option around this is to use --start-group and --end group. The OSX version
of ld doesn't have these options, the OSX man page does say the placement of
the -l flag is significant.

--

Reply via email to