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-Thread: 103376,c06ed2b443abb1e5 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.scarlet.biz!news.scarlet.biz.POSTED!not-for-mail NNTP-Posting-Date: Tue, 03 Jan 2006 08:47:00 -0600 From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: [gnuada, question] installations directory References: <1150472.HIHOOy7jJt@linux1.krischik.com> <43b92738$0$3802$9b4e6d93@newsread2.arcor-online.net> <32492718.GlmySslk4r@linux1.krischik.com> Date: Tue, 03 Jan 2006 15:46:33 +0100 Message-ID: <874q4lmks6.fsf@ludovic-brenta.org> User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:LYY8FrA5TNvk836Jhd9kpxyCJAs= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 83.134.244.49 X-Trace: sv3-yWm35WTpCUldGnAueykuJtzsiiOttKdbHyGCuG7CniWkKX9HAUks+4Oom2If7LjTQdD98ONO28cbY6A!ODxp8gpNesDVojzrVDp4oxesDHIvnnwo/ZiGU/NLE52iqVxfpdNLgQw5kWKjbYfCKnifr5pewA== X-Complaints-To: abuse@scarlet.be X-DMCA-Complaints-To: abuse@scarlet.biz X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:2430 Date: 2006-01-03T15:46:33+01:00 List-Id: Martin Krischik writes: > Linux is still not quite as easy to use as Mac :-(. Multiple gcc are not > usually available on Linux. GCC is designed so that multiple versions of it can be on the same system. This is especially imortant when you want both native and cross compilers to be available. Look at gcc -B, and the directory structure: /usr/lib/gcc///gnat1 >> Or, isn't there an rpm option to install in separate >> installation roots? > > Yes there is. The problem is the search path for DLLs. The path of an DLL is > hard-coded into the executable. Only if the shared library is created with "rpath", which is against Debian policy for example. rpath is a linker option. It is quite easy to have multiple versions of libgnat installed, provided they have different sonames. > There is also an additional search which can be set in > /etc/ld.so.conf.d when the DLL is not found at the "usual" place. > But that is all manual extra installation and can be quite tricky - > nothing I would want dump on an unwary beginner of Ada. The packages should use GCC's directory structure, and rename "gcc" to "gcc-3.4" or "gcc-4.0" as Debian does. Then one symlink, gcc, points to the system's default version. With gnat, the tools (gnatmake, gnatlink etc.) can be symlinks (in /usr/bin) pointing to executables in /usr/lib/gcc//. -- Ludovic Brenta.