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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,5e286d7d7d00a665,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.224.193.72 with SMTP id dt8mr15699644qab.7.1351518124785; Mon, 29 Oct 2012 06:42:04 -0700 (PDT) Received: by 10.52.91.168 with SMTP id cf8mr5407162vdb.6.1351518124757; Mon, 29 Oct 2012 06:42:04 -0700 (PDT) Path: gf5ni2985800qab.0!nntp.google.com!e17no11676696qar.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 29 Oct 2012 06:42:04 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=195.182.34.201; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S NNTP-Posting-Host: 195.182.34.201 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <967e4a44-2eb6-4d4b-b191-0e7a575da911@googlegroups.com> Subject: GNAT library directory - how to detect it at build time? From: Maciej Sobczak Injection-Date: Mon, 29 Oct 2012 13:42:04 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-10-29T06:42:04-07:00 List-Id: Hi, I have two Linux systems. On one GNAT keeps its library files in the follow= ing directory: /usr/lib/gcc/i486-linux-gnu/4.4 but on the other the directory is: /usr/lib/gcc/x86_64-linux-gnu/4.6 Normally I do not need to name these directories during compilation and lin= king, because GNAT is smart enough to use them when needed. Except for file= s that are directly in these directories and can that be needed for linking= . GNAT is not smart enough to find these files automatically and project fi= les have to be carefully crafted to work around that. Is there a way to obtain these paths in the automatic way (say, via standar= d GPR variables or something like that) or to abstract them away with a lin= k that is perhaps installed by GNAT always in the same place but that I hav= e not yet discovered? In short: I don't want to make ugly workarounds in GPR or Makefiles to tell= GNAT something that it knows already. --=20 Maciej Sobczak * http://www.msobczak.com * http://www.inspirel.com