From: "Philippe Bertin" <philippe.bertin@telenet.be>
Subject: Re: GNAT, shared libraries, building in different directories...madness!
Date: 5 Oct 2006 05:22:56 -0700
Date: 2006-10-05T05:22:56-07:00 [thread overview]
Message-ID: <1160050975.900425.183610@b28g2000cwb.googlegroups.com> (raw)
In-Reply-To: <87lko19qjw.fsf@ludovic-brenta.org>
While we are at it, is there somewhere a good reference document on the
different .gpr options ? As in GPS, one can specify options in the IDE,
and see them reflected in GPS' created .gpr file. But then again, I was
not aware of gps file's features like
<snip from Ludovic Brenta's post>
project Build_Adael is
Compiler := External ("COMPILER", "gnat");
Target := External ("TARGET", "linux");
Build := External ("BUILD", "release");
...
end Build_Adael;
</snip>
that can be passed along to gnatmake using the -X option. Are there
more of such 'hidden' (?) options/features ?
Furthermore, there are 2 environment variables (ADA_INCLUDE_PATH,
ADA_OBJECTS_PATH) that can be set for gnatmake's sake; setting these
do not necessitate passing to gnatmake the options for gcc and gnatbind
(in the case of a project having to use sources/object files in other
directories). As an example (supposed one wants to dynamically link
against the system's available gtkada library)
ADA_INCLUDE_PATH=/usr/local/gtk/include/gtkada
ADA_OBJECTS_PATH=/usr/local/gtk/include/gtkada
gnatmake window1.adb -largs `gtkada-config --libs`
which ends up in a call to gnatlink equivalent to :
gnatlink /home/papa/TestProjecten/GladeGUI/src/window1.ali
`gtkada-config --libs`
But then again, I have not found any such environment variable for
gnatlink's sake. Is there any such variable that can be set to avoid
this "-largs `gtkada-config --libs`"?
Thanks,
PhB
next prev parent reply other threads:[~2006-10-05 12:22 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-28 18:54 GNAT, shared libraries, building in different directories...madness! Lucretia
2006-09-30 6:30 ` vgodunko
2006-09-30 18:07 ` Ludovic Brenta
2006-10-01 14:44 ` sphinxmoro
2006-10-01 15:41 ` Simon Wright
2006-10-01 16:28 ` Ludovic Brenta
2006-10-05 12:22 ` Philippe Bertin [this message]
2006-10-05 12:33 ` Ludovic Brenta
2006-10-05 15:28 ` Philippe Bertin
2006-10-05 16:06 ` Alex R. Mosteo
2006-10-05 20:22 ` Ludovic Brenta
2006-10-07 8:21 ` Simon Wright
2006-10-14 19:13 ` Lucretia
2006-10-15 11:00 ` Simon Wright
-- strict thread matches above, loose matches on Subject: below --
2006-09-28 19:11 Lucretia
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox