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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,de92eb048dc3c019 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.kolumbus.fi!feeder2.news.jippii.net!reader1.news.jippii.net!53ab2750!not-for-mail From: Tapio Kelloniemi Subject: Re: Library file locations (was: Debian Policy for Ada, Second Edition) References: <441D793F.5030308@obry.net> Newsgroups: comp.lang.ada Message-ID: <53jTf.1195$T84.794@reader1.news.jippii.net> Date: Sun, 19 Mar 2006 20:21:21 GMT NNTP-Posting-Host: 217.30.176.187 X-Complaints-To: newsmaster@saunalahti.com X-Trace: reader1.news.jippii.net 1142799681 217.30.176.187 (Sun, 19 Mar 2006 22:21:21 EET) NNTP-Posting-Date: Sun, 19 Mar 2006 22:21:21 EET Organization: Saunalahti Customer Xref: g2news1.google.com comp.lang.ada:3466 Date: 2006-03-19T20:21:21+00:00 List-Id: Pascal Obry 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/ 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