From: Simon Wright <simon@pushface.org>
Subject: Re: GNAT library directory - how to detect it at build time?
Date: Mon, 29 Oct 2012 15:08:24 +0000
Date: 2012-10-29T15:08:24+00:00 [thread overview]
Message-ID: <ly4nldqpsn.fsf@pushface.org> (raw)
In-Reply-To: 967e4a44-2eb6-4d4b-b191-0e7a575da911@googlegroups.com
Maciej Sobczak <see.my.homepage@gmail.com> writes:
> Hi,
>
> I have two Linux systems. On one GNAT keeps its library files in the
> following 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 linking, because GNAT is smart enough to use them when
> needed. Except for files 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 files have to be carefully crafted to
> work around that.
>
> Is there a way to obtain these paths in the automatic way (say, via
> standard GPR variables or something like that) or to abstract them
> away with a link that is perhaps installed by GNAT always in the same
> place but that I have not yet discovered?
Not sure these will help ...
$ gnatgcc --print-libgcc-file-name
/opt/gcc-4.7.0/lib/gcc/x86_64-apple-darwin11/4.7.0/libgcc.a
or
$ gnatgcc --print-file-name=libgcc.a
/opt/gcc-4.7.0/lib/gcc/x86_64-apple-darwin11/4.7.0/libgcc.a
or the surprising
$ gnatgcc --print-file-name=adalib/libgnat.a
/opt/gcc-4.7.0/lib/gcc/x86_64-apple-darwin11/4.7.0/adalib/libgnat.a
next prev parent reply other threads:[~2012-11-05 12:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-29 13:42 GNAT library directory - how to detect it at build time? Maciej Sobczak
2012-10-29 15:08 ` Simon Wright [this message]
2012-10-30 9:02 ` Maciej Sobczak
2012-11-08 22:05 ` rugxulo
2012-11-09 8:07 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox