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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.36.185.21 with SMTP id w21mr6507689ite.14.1518879088119; Sat, 17 Feb 2018 06:51:28 -0800 (PST) X-Received: by 10.157.64.65 with SMTP id o1mr360747oti.9.1518879088014; Sat, 17 Feb 2018 06:51:28 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.unit0.net!peer03.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!w142no783986ita.0!news-out.google.com!s63ni1646itb.0!nntp.google.com!o66no784522ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 17 Feb 2018 06:51:27 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:c7d:3c35:b000:325a:3aff:fe0f:37a5; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS NNTP-Posting-Host: 2a02:c7d:3c35:b000:325a:3aff:fe0f:37a5 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> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <18a3466d-b192-4181-ba13-4c55e36ee661@googlegroups.com> Subject: Re: Exporting linker options from library GPR From: Lucretia Injection-Date: Sat, 17 Feb 2018 14:51:28 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 2648 X-Received-Body-CRC: 1613191894 Xref: reader02.eternal-september.org comp.lang.ada:50489 Date: 2018-02-17T06:51:27-08:00 List-Id: On Saturday, 17 February 2018 07:49:20 UTC, Simon Wright wrote: > 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). I can't see it working given that I had to break up "-framework SDL2" into 2 strings, means would need to do extra processing on the output from the sdl2-config. The current solution works, so I'll stick with this, for now, until it breaks somewhere :/