From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: pragma Linker_Options (was: JEWL on XP?)
Date: Mon, 10 Nov 2008 19:14:27 -0600
Date: 2008-11-10T19:14:27-06:00 [thread overview]
Message-ID: <gfam9n$ivc$1@jacob-sparre.dk> (raw)
In-Reply-To: 491807ee$0$31337$9b4e6d93@newsspool4.arcor-online.net
"Georg Bauhaus" <rm.dash-bauhaus@futureapps.de> wrote in message
news:491807ee$0$31337$9b4e6d93@newsspool4.arcor-online.net...
> Jeffrey R. Carter schrieb:
>
>> Depending on your compiler, you may need to convert the single "pragma
>> Linker_Options" into multiple, one for each item in the single one.
>
> So, pragma Linker_Options can be troublesome in case one
> cannot change the Ada source files. (Because whenever
> a compilation system interprets the string_expression of the
> pragma and the linker does not understand the string,
> compilation fails.) Wouldn't it be better, in general,
> to avoid system dependent pragma Linker_options in source
> files?
Well, maybe, but then you potentially lose version control on the options.
And you might not have control over the building environment, but still need
the options given.
For instance, in Claw, we have a package with separate bodies for each
compiler. Some of those bodies contain one or more Linker_Option pragmas. If
they're not given, Claw won't work (usually with a completely mysterious
error message). We don't provide build scripts with Claw (the various
compilers have fine mechanisms for that, we don't need to duplicate that).
So pragma Linker_Options is the only way to ensure that the correct options
are used.
I'd expect issues like these to arise for any "binding" packages that are
distributed separately (assuming that you need facilities beyond those
provided with the core OS). Similar reasons arise as to why you might want
to use configuration pragmas rather than compiler options to suppress checks
and the like.
Randy.
prev parent reply other threads:[~2008-11-11 1:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-09 23:32 JEWL on XP? Mike H
2008-11-10 1:50 ` Jeffrey R. Carter
2008-11-10 8:52 ` Mike H
2008-11-10 14:32 ` John McCormick
2008-11-10 10:07 ` pragma Linker_Options (was: JEWL on XP?) Georg Bauhaus
2008-11-11 1:14 ` Randy Brukardt [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox