From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Exporting linker options from library GPR Date: Sat, 17 Feb 2018 07:49:18 +0000 Organization: A noiseless patient Spider Message-ID: References: <981893565.540207668.848900.laguest-archeia.com@nntp.aioe.org> <101626dd-bbd5-4e10-a383-3c5e29d4bc88@googlegroups.com> <1663297707.540284845.822306.laguest-archeia.com@nntp.aioe.org> <301425720.540294866.314644.laguest-archeia.com@nntp.aioe.org> <836a0b01-419e-4b53-a15c-75bc7d41b462@googlegroups.com> <39a68743-624e-4dd9-8691-8e884f6b74d4@googlegroups.com> <411643190.540429197.080395.laguest-archeia.com@nntp.aioe.org> <4a06e363-24f7-43ec-a883-245933896b77@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="b17bafe16e7bd0ca33ff125b591e6e22"; logging-data="2130"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+f+6GD3Q3Qb5qjBUJ47m8kgvBgNIgc80w=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:mR1Wqde/U+3eDmPdvy1bXsJBZR0= sha1:yxmGIl/odRK218wLH8qXo+qrSS8= Xref: reader02.eternal-september.org comp.lang.ada:50480 Date: 2018-02-17T07:49:18+00:00 List-Id: Stephen Leake writes: > You might be able to get gprbuild to run sdl2-config if you create > your own xml file. See gnat/share/gprconfig/*.xml. Those files tell > gprbuild how to run tools. I haven't played with that in a long time, > and I'm sure it's changed since then (it changed often when I was > playing with it), so I can't help more than this. I didn't think that would let you feed back the result of running the tool into gprbuild; but worth a look, thanks. > You can run sdl2-config in the makefile, put the result in an > environment variable, and read that environment variable in the gpr > (maybe that's what you mean by "in the makefile" above). Yes.