From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: How to nicely distribute a simple Ada library?
Date: Mon, 5 Dec 2011 18:50:34 +0100
Date: 2011-12-05T18:50:34+01:00 [thread overview]
Message-ID: <1djnmk0kgl65q$.1vbfo4w0hv7lt.dlg@40tude.net> (raw)
In-Reply-To: op.v50w0tw8ule2fv@douda-yannick
On Mon, 05 Dec 2011 16:51:55 +0100, Yannick Duchêne (Hibou57) wrote:
> Le Mon, 05 Dec 2011 16:22:19 +0100, Georg Bauhaus
> <rm.dash-bauhaus@futureapps.de> a écrit:
>> Another reason is obfuscation. Where do you find the build
>> settings for this software? Somewhere in the sources.
>> […]
> I see three advantages for this: first this is
> clearly visible from body source (especially if specified at the top of
> the source) and then,
Which body? The option is seen in the gnatmake/gprbuild string. If an
inappropriate option appears there, your actions? If a desired option does
not, how do you find the body missing it?
> this applies localization principle (lack of
> localization does not help understanding), and then again, if this package
> is not used, then the linker option is automatically dropped (avoid
> unneeded dependencies).
Normally, linker options do not apply to the bodies, they do to the program
as a whole.
> If multiple package links to the same library,
> there is no troubles anyway.
That depends on the option. If conflicting options appear, good luck in
resolving the problem.
> The only one issue I know is linker dependency. The pragma Linker_Options
> arguments syntax is not specified by the standard.
Yes, the compiler has all rights to ignore it. So you would definitely
enjoy gathering linker options spread across all *used* bodies guessing
what was ignored and what was taken...
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2011-12-05 17:50 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-04 11:19 How to nicely distribute a simple Ada library? Natasha Kerensikova
2011-12-04 12:06 ` Dmitry A. Kazakov
2011-12-05 11:55 ` Yannick Duchêne (Hibou57)
2011-12-05 11:58 ` Yannick Duchêne (Hibou57)
2011-12-05 13:31 ` Dmitry A. Kazakov
2011-12-05 14:11 ` Yannick Duchêne (Hibou57)
2011-12-05 15:22 ` Georg Bauhaus
2011-12-05 15:51 ` Yannick Duchêne (Hibou57)
2011-12-05 17:50 ` Dmitry A. Kazakov [this message]
2011-12-05 15:24 ` Dmitry A. Kazakov
2011-12-06 0:22 ` Randy Brukardt
2011-12-06 6:27 ` J-P. Rosen
2011-12-08 7:47 ` Randy Brukardt
2011-12-08 10:17 ` Ludovic Brenta
2011-12-09 0:00 ` Randy Brukardt
2011-12-09 8:42 ` Ludovic Brenta
2011-12-06 8:57 ` Ludovic Brenta
2011-12-06 9:47 ` Dmitry A. Kazakov
2011-12-06 10:13 ` Ludovic Brenta
2011-12-08 15:53 ` Yannick Duchêne (Hibou57)
2011-12-08 18:34 ` Dmitry A. Kazakov
2011-12-04 12:28 ` Ludovic Brenta
2011-12-04 14:39 ` Georg Bauhaus
2011-12-08 10:18 ` Natasha Kerensikova
2011-12-08 11:28 ` Ludovic Brenta
2011-12-08 14:00 ` Robert A Duff
2011-12-08 15:37 ` Georg Bauhaus
2011-12-04 17:42 ` Jeffrey Carter
2011-12-04 20:25 ` Tero Koskinen
2011-12-04 22:04 ` Simon Wright
2011-12-05 11:53 ` Yannick Duchêne (Hibou57)
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox