comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <see.my.homepage@gmail.com>
Subject: GNAT library directory - how to detect it at build time?
Date: Mon, 29 Oct 2012 06:42:04 -0700 (PDT)
Date: 2012-10-29T06:42:04-07:00	[thread overview]
Message-ID: <967e4a44-2eb6-4d4b-b191-0e7a575da911@googlegroups.com> (raw)

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?

In short: I don't want to make ugly workarounds in GPR or Makefiles to tell GNAT something that it knows already.

-- 
Maciej Sobczak * http://www.msobczak.com * http://www.inspirel.com



             reply	other threads:[~2012-10-29 13:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-29 13:42 Maciej Sobczak [this message]
2012-10-29 15:08 ` GNAT library directory - how to detect it at build time? Simon Wright
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