comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <Stephen.A.Leake@nasa.gov>
Subject: Re: Compilation induced constants in Ada code?
Date: 03 Jan 2003 17:34:38 -0500
Date: 2003-01-03T22:47:16+00:00	[thread overview]
Message-ID: <uy961981t.fsf@nasa.gov> (raw)
In-Reply-To: pan.2003.01.03.11.12.02.464825@nospam.org

"Per Dalgas Jakobsen" <nospam@nospam.org> writes:

> Hi,
> 
> I'm trying to get gcc to compile more robust with Ada support.
> At the moment it breaks if -suffix is used in builds (gcc becomes gcc-3.2
> or similar).
> 
> In make.adb the following line is declared:
> 	Gcc : String_Access := Program_Name ("gcc");
> 
> This causes gnatmake to look for gcc, not the suffixed version.
> 
> What will be considered a good solution to get the compilation of gnatmake
> depend on a compiler-switch?
> 
> An obvious one: Patch make.adb to change the name just before compilation.
> 
> Others?

There is a gnatmake command line switch to specify the compiler name;
you could turn usr/bin/gnatmake into a script, and set the command
line switch.

However, setting this kind of thing is what the Gnu configuration
process normally does in other Gnu tools. So I think the Right Thing
is to add a package gnat_names.ads, and have configure generate that,
and have make.adb use GNAT_Names.Gcc rather than a local variable.

That would require coordinating with ACT to get the change into their
releases.

-- 
-- Stephe



  reply	other threads:[~2003-01-03 22:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-03 11:12 Compilation induced constants in Ada code? Per Dalgas Jakobsen
2003-01-03 22:34 ` Stephen Leake [this message]
2003-01-07 14:20   ` Ted Dennison
2003-01-04 19:50 ` Waldek Hebisch
2003-01-04 20:22   ` Per Dalgas Jakobsen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox