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 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Received: by 10.224.189.16 with SMTP id dc16mr15241633qab.0.1351587751490; Tue, 30 Oct 2012 02:02:31 -0700 (PDT) Received: by 10.236.150.16 with SMTP id y16mr3072733yhj.8.1351587751447; Tue, 30 Oct 2012 02:02:31 -0700 (PDT) Path: gf5ni2985800qab.0!nntp.google.com!e17no13658002qar.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 30 Oct 2012 02:02:31 -0700 (PDT) In-Reply-To: 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 References: <967e4a44-2eb6-4d4b-b191-0e7a575da911@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: GNAT library directory - how to detect it at build time? From: Maciej Sobczak Injection-Date: Tue, 30 Oct 2012 09:02:31 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Date: 2012-10-30T02:02:31-07:00 List-Id: W dniu poniedzia=C5=82ek, 29 pa=C5=BAdziernika 2012 16:08:25 UTC+1 u=C5=BCy= tkownik Simon Wright napisa=C5=82: > Not sure these will help ... >=20 > $ gnatgcc --print-libgcc-file-name [...] Yes, it helped. Not directly, but I have followed this idea and finally end= ed up with this: $ gnatgcc --print-search-dirs | grep 'install: ' | grep -o '/.*' The above command extracts the name of GNAT installation directory, which I= can then inject into the GNAT project manager and use to portably link the= final program. I hope the above will help others as well. --=20 Maciej Sobczak * http://www.msobczak.com * http://www.inspirel.com