From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8ff8a403110109d8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-06 09:38:29 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Compilation induced constants in Ada code? Date: 03 Jan 2003 17:34:38 -0500 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1041634036 8152 128.183.235.92 (3 Jan 2003 22:47:16 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 3 Jan 2003 22:47:16 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:32626 Date: 2003-01-03T22:47:16+00:00 List-Id: "Per Dalgas Jakobsen" 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