From: ahlan@marriott.org
Subject: Re: Building an encapsulated library that uses GNAT sockets under Windows
Date: Sun, 24 Apr 2016 01:13:12 -0700 (PDT)
Date: 2016-04-24T01:13:12-07:00 [thread overview]
Message-ID: <6c3cb21b-f729-4599-afb0-793c8b8fc2b8@googlegroups.com> (raw)
In-Reply-To: <lymvokkou4.fsf@pushface.org>
On Saturday, April 23, 2016 at 11:16:53 PM UTC+2, Simon Wright wrote:
> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
>
> > Can [gprlib] build a static equivalent too? I.e. a static library
> > containing a closure of all referenced objects plus initialization
> > code.
>
> I'm not sure it's relevant, but I posted a bug[1] on gnatmake & static
> standalone libraries; I sent AdaCore a similar report on gprbuild, no
> reply.
>
> The problem was, for a static SAL, the using Ada main program needs to
> see all the ALIs for it to be sure to call in all the dylibs required by
> the library; so if e.g. libgnarl was only called by non-interface units
> it would get linked but not elaborated.
>
> I wanted to use SALs because they automatically populate the include
> directory with relevant source.
>
> The GNAT GPL 2015 version of the patch is
>
> diff --git a/src/gprlib.adb b/src/gprlib.adb
> --- a/src/gprlib.adb
> +++ b/src/gprlib.adb
> @@ -555,7 +555,7 @@
> Status : Boolean;
>
> begin
> - if Standalone = No then
> + if Standalone = No or Static then
> for Index in 1 .. ALIs.Last loop
> declare
> Destination : constant String :=
>
> [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56616
Dear Simon,
Unfortunately your bug fix isn't included in the sources maintained by AdaCore at GitHub.
So thank you for the improvement :-)
Regards,
Ahlan
next prev parent reply other threads:[~2016-04-24 8:13 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-21 12:59 Building an encapsulated library that uses GNAT sockets under Windows Dmitry A. Kazakov
2016-04-22 7:58 ` ahlan.marriott
2016-04-22 8:23 ` Dmitry A. Kazakov
2016-04-23 9:20 ` Ahlan
2016-04-23 9:48 ` Dmitry A. Kazakov
2016-04-23 14:45 ` ahlan.marriott
2016-04-23 19:56 ` Dmitry A. Kazakov
2016-04-23 21:16 ` Simon Wright
2016-04-24 8:13 ` ahlan [this message]
2016-04-24 8:31 ` Simon Wright
2016-04-26 19:43 ` ahlan.marriott
2016-04-26 20:24 ` Simon Wright
2016-04-26 22:32 ` Jeffrey R. Carter
2016-04-27 22:16 ` Randy Brukardt
2016-04-27 23:43 ` Jeffrey R. Carter
2016-04-28 5:18 ` J-P. Rosen
2016-04-28 5:59 ` Jeffrey R. Carter
2016-05-09 22:32 ` David Thompson
2016-04-28 20:23 ` Randy Brukardt
2016-04-28 21:47 ` Jeffrey R. Carter
2016-04-28 5:13 ` J-P. Rosen
2016-04-26 20:20 ` Dmitry A. Kazakov
2016-04-26 21:23 ` Simon Wright
2016-04-27 6:53 ` Simon Wright
2016-04-27 7:25 ` ahlan
2016-04-27 8:27 ` Dmitry A. Kazakov
2016-04-27 9:59 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox