[Scons-users] pkg-config support

Russel Winder russel at winder.org.uk
Mon Aug 6 08:24:53 EDT 2018


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20180806/39eec088/attachment.sig>


More information about the Scons-users mailing list