comp.lang.ada
 help / color / mirror / Atom feed
* GNAT library directory - how to detect it at build time?
@ 2012-10-29 13:42 Maciej Sobczak
  2012-10-29 15:08 ` Simon Wright
  0 siblings, 1 reply; 5+ messages in thread
From: Maciej Sobczak @ 2012-10-29 13:42 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-11-16  9:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-29 13:42 GNAT library directory - how to detect it at build time? Maciej Sobczak
2012-10-29 15:08 ` Simon Wright
2012-10-30  9:02   ` Maciej Sobczak
2012-11-08 22:05     ` rugxulo
2012-11-09  8:07       ` Simon Wright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox