comp.lang.ada
 help / color / mirror / Atom feed
From: Tapio Kelloniemi <spam18@thack.org>
Subject: Re: Library file locations (was: Debian Policy for Ada, Second Edition)
Date: Sun, 19 Mar 2006 20:21:21 GMT
Date: 2006-03-19T20:21:21+00:00	[thread overview]
Message-ID: <53jTf.1195$T84.794@reader1.news.jippii.net> (raw)
In-Reply-To: 441D793F.5030308@obry.net

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1786 bytes --]

Pascal Obry <pascal@obry.net> wrote:
>Tapio Kelloniemi a �crit :
>
>> GNAT should look for project files in /usr/local as well, but I'm
>> afraid this will not be done. Perhaps the project file directory should be
>> changed to share/gnat.
>
>As I said this is not ok for handling multiple compilers. Remember that
>the libraries you build is dependent on the compiler version used to
>built it and can't be shared with another compiler.

This is not true. It is no more than a week when I upgraded GCC 4.0.2
to 4.1.0 on my Linux Ffrom Scratch system and I was able to upgrade glibc
with the new GCC without breaking anything. If all GCC's on the system target
the same architecture, one can compile libraries with one and applications
with another, if the compilers' ABI is the same.

> That's why having a root install directory per compiler version
> (/opt/gnat/<ver> or whatever) if a good scheme.

Yes it is, unless we are talking about the system Ada compiler. And back to my 
original idea of searching for project files in /usr/local/. You said that 
this can't be done, because multiple compilers must be supported. However GCC 
searches for header files in /usr/include and /usr/local/include even when it 
is installed under /opt. If some other behaviour is desired, GCC specs must be 
modified. So either GNAT should also use the same specs machanism as the rest 
of GCC (we agree that GNAT should behave the same way as other compilers in 
GCC?) or it should:
- Search from /usr/local if and only if it will be installed to /usr.
and/or
- Provide an easy way for system administrators to change the project search 
  path. Perhaps a file like ada_project_path could be added to lib/gcc/*/* 
  where ada_object_path and ada_source_path files may also reside.

-- 
Tapio



  parent reply	other threads:[~2006-03-19 20:21 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-18  1:15 Debian Policy for Ada, Second Edition Ludovic Brenta
2006-03-18 13:36 ` Pascal Obry
2006-03-18 14:39   ` Ludovic Brenta
2006-03-18 16:32     ` Pascal Obry
2006-03-18 17:13       ` Ludovic Brenta
2006-03-18 19:10         ` Pascal Obry
2006-03-18 19:49           ` Georg Bauhaus
2006-03-18 21:16       ` Tapio Kelloniemi
2006-03-19  2:04         ` Library file locations (was: Debian Policy for Ada, Second Edition) Björn Persson
2006-03-19  7:48           ` Tapio Kelloniemi
2006-03-19 13:00             ` Björn Persson
2006-03-19 15:31             ` Pascal Obry
2006-03-19 16:48               ` Björn Persson
2006-03-19 20:21               ` Tapio Kelloniemi [this message]
2006-03-19 22:24                 ` Ludovic Brenta
2006-03-20  9:07                   ` Tapio Kelloniemi
2006-03-20 11:51                     ` Ludovic Brenta
2006-03-21 20:11                       ` Tapio Kelloniemi
2006-03-21 22:30                         ` Library file locations Ludovic Brenta
2006-03-22 11:57                         ` Library file locations (was: Debian Policy for Ada, Second Edition) Georg Bauhaus
2006-03-20  6:52                 ` Pascal Obry
2006-03-20  9:10                   ` Tapio Kelloniemi
replies disabled

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