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: Exporting linker options from library GPR Date: Fri, 19 Jan 2018 14:25:27 +0000 Organization: A noiseless patient Spider Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="2b89bd3d01304853b38669b28ca5b559"; logging-data="3929"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+fk+s4xtofV3TbODdwY6J6DunK/ZYbbCo=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:RTnPb3r0OMnwvl5lMVf/FPwDI1U= sha1:PBaU9p3sJeUVc5QsAmn3JlL2ZoQ= Xref: reader02.eternal-september.org comp.lang.ada:49996 Date: 2018-01-19T14:25:27+00:00 List-Id: I'm working with SDLAda, thanks Luke, on macOS, using a prebuilt SDL2, which comes as a framework. Whenever another project needs to link against the library project concerned, it has to use the options ("-F", external ("HOME") & "/Library/Frameworks", "-framework", "SDL2") I tried (in this project) Linking_Options := ("-F", external ("HOME") & "/Library/Frameworks", "-framework", "SDL2"); for Library_Options use Linking_Options; package Linker is for Default_Switches ("ada") use Linking_Options; end Linker; (which results in the warning that Linker switches aren't taken account in library Projects) and in the using project package Linker renames SDLAda.Linker; I could avoid the warning by omitting SDLAda.Linker and writing in the using project package Linker is for Default_Switches ("ada") use SDLAda.Linking_Options; end Linker; These workrounds are all very well, but is there any way of telling the final linker to add these switches automatically?