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!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: gprbuild and Linker_Options bug? Date: Tue, 01 Apr 2014 08:41:04 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="d9e254beee3a7e1a075e7abafbd6c19c"; logging-data="14667"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18dh/fNy/bajfyfLicPhyQ29onXADiXWT4=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:o4tHGU9tLIifLsPcPG+3VE+XLYY= sha1:ouqueRlecUa9j0gOjs26Qbqfb9Q= Xref: news.eternal-september.org comp.lang.ada:19068 Date: 2014-04-01T08:41:04+01:00 List-Id: Qun-Ying writes: > Where it fails to use the Linker_Options defined in the project file. > But "gnatmake -P a" will build the program without problem. > > Is this a known problem? Or something I have missed? I think it's a feature. The gprbuild manual[1] says that the Linker_Options "[v]alue is a list of switches/options that are to be added when linking an executable from a project importing the current project directly or indirectly. Linker_Options are not used when linking an executable from the current project." And gprbuild & gnatmake have subtly different rules and capabilities. [1] http://docs.adacore.com/gprbuild-docs/html/gprbuild_ug.html