comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Exporting linker options from library GPR
Date: Fri, 19 Jan 2018 17:25:15 +0000
Date: 2018-01-19T17:25:15+00:00	[thread overview]
Message-ID: <ly8tct3gn8.fsf@pushface.org> (raw)
In-Reply-To: p3t5a5$14um$1@gioia.aioe.org

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:

> On 2018-01-19 15:25, Simon Wright wrote:
>> I'm working with SDLAda, thanks Luke, on macOS, using a prebuilt SDL2,
>> which comes as a framework.
>
> [...]
>
>> These workrounds are all very well, but is there any way of telling the
>> final linker to add these switches automatically?
>
> AFAIK it should be
>
>    for Library_Options use ...

This in the build-library GPR tells the switches to build a shared
library. Itwas present in the build-library GPR, but didn't solve my
problem.  I just tried again ... and ... this time it worked, perhaps
because I was confused between shared & static ... it seems that things
are OK at least when the built library is dynamic ... this may be
Mac-related, since Darwin shared libraries (.dylib) contain references
to the paths of the dylibs they themselves use.

Still confused.

> and/or
>
>    for Leading_Library_Options use ...
>
> in the library project to be specified in "with".
>
> And you cannot have build-library and with-library project files
> same. At least I never managed that.

It seems they can be in this case (all a bit of a confusing mystery).

I do seem to have come across a couple of gprbuild/gprinstall issues in
this area. More investigation needed.

To answer my original question - it seems that a library project file
that contains a package Linker with an attribute Linker_Options was what
I was looking for.

  reply	other threads:[~2018-01-19 17:25 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 [this message]
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
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