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 15:43:01 +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> <18a3466d-b192-4181-ba13-4c55e36ee661@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="b17bafe16e7bd0ca33ff125b591e6e22"; logging-data="11643"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/wbVgY+preuIfiAW7/yniapVD2ZbSMV+4=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:MKCjmBq7swlPrMc6tqyXaqzPvL8= sha1:hfyDRVkzmKBvSpIABAcdjrxoSSI= Xref: reader02.eternal-september.org comp.lang.ada:50491 Date: 2018-02-17T15:43:01+00:00 List-Id: Lucretia writes: > On Saturday, 17 February 2018 07:49:20 UTC, Simon Wright wrote: (actually, this was Stephe) >> > 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. FLAGS := external_as_list ("-framework SDL2", " "); results in ("-framework", "SDL2")