[Scons-users] pkg-config support

Bill Deegan bill at baddogconsulting.com
Mon Aug 6 12:11:41 EDT 2018


Is linking binaries build with different D compilers supported? (is the ABI
well defined)

On Mon, Aug 6, 2018 at 5:24 AM, Russel Winder <russel at winder.org.uk> wrote:

> On Sun, 2018-08-05 at 14:25 -0700, Bill Deegan wrote:
> > so does pkg-config spit out D specific flags now?
> > Perhaps you can paste an example?
>
> It depends. :-(
>
> Which is part of the problem.
>
> > Or are you talking about munging pkg-config's output to "do the right
> > thing" for D compilation (and Fortran)?
>
> Both. :-(
>
> For reasons known only to a certain individual the dmd (and as a knock on
> consequence the ldc2) compiler have option structures that are almost, but
> not
> quite, entirely unlike GCC standard options (*). Gdc is fine since it is
> part
> of the GCC suite.
>
> So you have to distinguish dmd/ldc2/ldmd2 on the one hand and gdc/gcc/g++
> on
> the other, which may necessitate munging options. And some dmd options are
> different in ldc2, but not ldmd2.
>
> Moreover the .pc file for a library has options dependent on the compiler
> being used to create the library. If you use the same compiler then the
> options are right, if you use a different one, you have to munge.
>
> This situation really is a disaster. But one that one must cope with.
> Either
> than or give up, go to a corner, and cry.
>
>
> (*) With apologies to Douglas Adams for munging his tea from a machine
> sentence.
> --
> Russel.
> ===========================================
> Dr Russel Winder      t: +44 20 7585 2200
> 41 Buckmaster Road    m: +44 7770 465 077
> London SW11 1EN, UK   w: www.russel.org.uk
>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20180806/5f6ab597/attachment.html>


More information about the Scons-users mailing list