comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: How to nicely distribute a simple Ada library?
Date: Mon, 05 Dec 2011 16:51:55 +0100
Date: 2011-12-05T16:51:55+01:00	[thread overview]
Message-ID: <op.v50w0tw8ule2fv@douda-yannick> (raw)
In-Reply-To: 4edce1ab$0$6552$9b4e6d93@newsspool4.arcor-online.net

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.
> […]
For readability, on the opposite (see below)

> Some software I have seen included -lsomething only because
> this was useful on the development platform at some point,
> not because the software needed "something".
Reply to both you and Dmitry: I like to use it for system library  
dependencies. When a platform provides a library which is not optional  
because it is part of the standard environment, I like to add a pragma  
Linker_Options in bodies. 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, 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). If multiple package links to the same library,  
there is no troubles anyway.

Do you (either you or Dmitry) see a serious reason to not do this way ?

I did not though about linker options in the large, only about this one:  
specify a library to be linked with the package.

The only one issue I know is linker dependency. The pragma Linker_Options  
arguments syntax is not specified by the standard. I don't know about the  
syntax used with other linkers than GNU LD.

> Perhaps options in sources is a habit imported from some
> dialect of Pascal?
Be sure, no (I've suffered to much with this to repeat the experience)

-- 
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University



  reply	other threads:[~2011-12-05 15:51 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) [this message]
2011-12-05 17:50             ` Dmitry A. Kazakov
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