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

Rainer Schuetze <[email protected]> changed:

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

--- Comment #1 from Rainer Schuetze <[email protected]> ---
The runtime library link comments are usually added to the object file that
contains main(), but this falls short in your case of building a static
library. Adding it elsewhere into the library doesn't help because there is no
guarantee that it will be dragged in by the linker.

So far, I've been trying not to interfere with projects that don't use D at
all. Adding D files to a C++ project already modifies linker search paths, but
doesn't add the runtime libraries. I guess that would be better.

With static libraries this gets a bit more complicated as these settings must
be propagated to the actual link step in a different project.

--

Reply via email to