comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Exporting linker options from library GPR
Date: Fri, 16 Feb 2018 08:29:41 +0000
Date: 2018-02-16T08:29:41+00:00	[thread overview]
Message-ID: <lyvaexgwwa.fsf@pushface.org> (raw)
In-Reply-To: 411643190.540429197.080395.laguest-archeia.com@nntp.aioe.org

Luke A. Guest <laguest@archeia.com> writes:

> Simon Wright <simon@pushface.org> wrote:
>> Lucretia <laguest9000@googlemail.com> writes:
>> 
>>> 1. GPRBuild whines about the Linker package in the library gpr, WTF?
>>> 2. GPRInstall removes the Linker package on install, WTF? That's
>>> really useful!
>> 
>> Inside package Linker, you need to use Linker_Options rather than
>> Default_Switches ("ada")
>> 
>> 
>
> Strange. Ok, I’ll try it. Is there an equivalent one for c compiler
> options? Just in case someone tries to rebuild the lib once it’s
> installed?

From the gprbuild references, Linker_Options

   "specifies a list of additional switches to be given to the linker
   when linking an executable. It is ignored when defined in the main
   project and taken into account in all other projects that are
   imported directly or indirectly. These switches complement the
   Linker'Switches defined in the main project. This is useful when a
   particular subsystem depends on an external library: adding this
   dependency as a Linker_Options in the project of the subsystem is
   more convenient than adding it to all the Linker'Switches of the main
   projects that depend upon this subsystem.

so (a) it only really applies to a library, (b) it's
language-independent.

We already have Compiler'[Default_]Switches ("c").

  reply	other threads:[~2018-02-16  8:29 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-19 14:25 Exporting linker options from library GPR Simon Wright
2018-01-19 16:10 ` Dmitry A. Kazakov
2018-01-19 17:25   ` Simon Wright
2018-01-20 18:15     ` Stephen Leake
2018-02-13  9:43 ` Luke A. Guest
2018-02-13 18:37   ` Lucretia
2018-02-13 20:30     ` Simon Wright
2018-02-13 20:37     ` Simon Wright
2018-02-14  6:29       ` Luke A. Guest
2018-02-13 20:42     ` Simon Wright
2018-02-14  7:10       ` Luke A. Guest
2018-02-14  9:33         ` Simon Wright
2018-02-14  9:59           ` Luke A. Guest
2018-02-15  1:04             ` Lucretia
2018-02-15  8:49               ` Simon Wright
2018-02-15 10:06                 ` Lucretia
2018-02-15 11:39                   ` Simon Wright
2018-02-15 15:22                     ` Lucretia
2018-02-15 15:24                     ` Lucretia
2018-02-15 18:38                       ` Lucretia
2018-02-15 18:42                         ` Lucretia
2018-02-15 20:52                           ` Simon Wright
2018-02-15 23:14                             ` Luke A. Guest
2018-02-16  8:29                               ` Simon Wright [this message]
2018-02-16 23:26                                 ` Stephen Leake
2018-02-17  7:49                                   ` Simon Wright
2018-02-17 14:51                                     ` Lucretia
2018-02-17 15:43                                       ` Simon Wright
2018-02-17 15:52                                         ` Lucretia
2018-02-16  7:29                             ` Lucretia
2018-02-13  9:50 ` Luke A. Guest
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox