<html><head></head><body><div class="ydpe8c54a69yahoo-style-wrap" style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 13px;"><div></div>
        <div dir="ltr" data-setdir="false"><div>This issue has been resolved with the `-preview=noXlinker` switch:  https://dlang.org/changelog/pending.html#noxlinker<br><br>It will allow users to pass options directly to the linker driver without DMD trying to be clever.</div><div><br></div><div dir="ltr" data-setdir="false">It should arrive in the next release.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">See also <a href="https://issues.dlang.org/show_bug.cgi?id=6952" rel="nofollow" target="_blank">https://issues.dlang.org/show_bug.cgi?id=6952</a></div></div><div><br></div>
        
        </div><div id="yahoo_quoted_9409603431" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Wednesday, September 25, 2019, 12:17:42 PM GMT+9, Alan W. Irwin via dmd-internals <dmd-internals@puremagic.com> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div dir="ltr">To dmd developers:<br></div><div dir="ltr"><br></div><div dir="ltr">I have found a number of bug reports (e.g.,<br></div><div dir="ltr"><<a href="https://issues.dlang.org/show_bug.cgi?id=7678" target="_blank">https://issues.dlang.org/show_bug.cgi?id=7678</a>> and<br></div><div dir="ltr"><<a href="https://issues.dlang.org/show_bug.cgi?id=17390" target="_blank">https://issues.dlang.org/show_bug.cgi?id=17390</a>>) concerning the issue<br></div><div dir="ltr">of implementing for the dmd compiler the equivalent of the existing<br></div><div dir="ltr">ldc2 -Xcc option to allow communicating options directly to the C<br></div><div dir="ltr">compiler that is actually used by dmd (according to its -v option) for<br></div><div dir="ltr">linking.<br></div><div dir="ltr"><br></div><div dir="ltr">I would like to add my opinion that it would be good to get this<br></div><div dir="ltr">requested -Xcc option implemented for dmd because of the following use<br></div><div dir="ltr">case concerning -pthread (a common linking option used by many<br></div><div dir="ltr">compilers to help arrange all the details correctly for linking the<br></div><div dir="ltr">thread library).<br></div><div dir="ltr"><br></div><div dir="ltr">That use case is the PLplot project CMake-based build system for the<br></div><div dir="ltr">static PLplot libraries case necessarily links its D plotting examples<br></div><div dir="ltr">by linking a mixture of C-compiled code from the static plplot core C<br></div><div dir="ltr">library, D-compiled code from the static plplotdmd library that<br></div><div dir="ltr">implements the D binding for that C library, and the D-compiled code<br></div><div dir="ltr">from the D example.  This all works well for our CMake-based build<br></div><div dir="ltr">system except for a fairly common configuration of our C library where<br></div><div dir="ltr">the C code of that library must be linked with the -pthread compiler<br></div><div dir="ltr">option when that C compiler is *used for linking*.  So this all works<br></div><div dir="ltr">well for the gdc compiler when it is used to link the D examples<br></div><div dir="ltr">because it understands that -pthread option.  And it also works well<br></div><div dir="ltr">for ldc2 if the -Xcc-pthread option is used to inform the underlying C<br></div><div dir="ltr">compiler used for linking of that -pthread option.<br></div><div dir="ltr"><br></div><div dir="ltr">However, that -Xcc option is currently not available for dmd (as far<br></div><div dir="ltr">as I can tell from the above bug reports and from my attempts to use<br></div><div dir="ltr">that option with a dmd compiler that I built myself on Linux) so I am<br></div><div dir="ltr">pretty much stuck for this use case and dmd until the -Xcc option<br></div><div dir="ltr">becomes available for the dmd case as well.<br></div><div dir="ltr"><br></div><div dir="ltr">Anyhow, thanks for listening to my request to implement the -Xcc<br></div><div dir="ltr">option for the dmd compiler, and best wishes for your on-going<br></div><div dir="ltr">development of dmd.<br></div><div dir="ltr"><br></div><div dir="ltr">Alan<br></div><div dir="ltr">__________________________<br></div><div dir="ltr">Alan W. Irwin<br></div><div dir="ltr"><br></div><div dir="ltr">Programming affiliations with the FreeEOS equation-of-state<br></div><div dir="ltr">implementation for stellar interiors (freeeos.sf.net); the Time<br></div><div dir="ltr">Ephemerides project (timeephem.sf.net); PLplot scientific plotting<br></div><div dir="ltr">software package (plplot.org); the libLASi project<br></div><div dir="ltr">(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);<br></div><div dir="ltr">and the Linux Brochure Project (lbproject.sf.net).<br></div><div dir="ltr">__________________________<br></div><div dir="ltr"><br></div><div dir="ltr">Linux-powered Science<br></div><div dir="ltr">__________________________<br></div><div dir="ltr">_______________________________________________<br></div><div dir="ltr">dmd-internals mailing list<br></div><div dir="ltr"><a ymailto="mailto:dmd-internals@puremagic.com" href="mailto:dmd-internals@puremagic.com">dmd-internals@puremagic.com</a><br></div><div dir="ltr"><a href="http://lists.puremagic.com/mailman/listinfo/dmd-internals" target="_blank">http://lists.puremagic.com/mailman/listinfo/dmd-internals</a><br></div></div>
            </div>
        </div></body></html>