comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Question on setting up libraries
Date: Sun, 16 Jul 2006 14:17:09 +0200
Date: 2006-07-16T14:17:09+02:00	[thread overview]
Message-ID: <87d5c53fsq.fsf@ludovic-brenta.org> (raw)
In-Reply-To: m21wsmhr9q.fsf@grendel.local

Simon Wright <simon@pushface.org> writes:
>    $ ls /opt/gnat-gpl-2005/lib/gcc/powerpc-apple-darwin7.4.1/3.4.5/adalib/*.[ao]
>    /opt/gnat-gpl-2005/lib/gcc/powerpc-apple-darwin7.4.1/3.4.5/adalib/g-trasym.o
>    /opt/gnat-gpl-2005/lib/gcc/powerpc-apple-darwin7.4.1/3.4.5/adalib/libgccprefix.a
>    /opt/gnat-gpl-2005/lib/gcc/powerpc-apple-darwin7.4.1/3.4.5/adalib/libgmem.a
>    /opt/gnat-gpl-2005/lib/gcc/powerpc-apple-darwin7.4.1/3.4.5/adalib/libgnarl.a
>    /opt/gnat-gpl-2005/lib/gcc/powerpc-apple-darwin7.4.1/3.4.5/adalib/libgnat.a
>
> so there the choice isn't 100% for some deep reason; but the compiler
> will have special magic to include the necessary linker directives for
> itself.

g-trasym.o contains GNAT.Traceback.Symbolic_Tracebacks.  It relies on
an external program (addr2line) or library (libaddr2line.a) to
translate addresses to line numbers in the source code.  If you bind
with gnatbind -E and use symbolic tracebacks, you need this object
file and the program or library.  If you don't need symbolic
tracebacks, then libgnat.a and libgarl.a are sufficient.

Some parts of libgnat.a need libgccprefix.a, too (see gnatvsn.ads,
gnatvsn.adb).

On Debian, both g-trasym.o and libgccprefix.a are packaged into
libgnat.a for simplicity.  addr2line is always available, because it
is part of binutils, which are necesary anyway to produce any object
file (binutils contains as and ld).

> I'd expect the equivalent in your case to be in a GNAT Project file
> for AdaCurses (adacurses.gpr??); or perhaps in a pragam
> Linker_Options somewhere.

Yes.

-- 
Ludovic Brenta.



  reply	other threads:[~2006-07-16 12:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1152998024.669864.21010@35g2000cwc.googlegroups.com>
2006-07-15 21:24 ` Question on setting up libraries Ludovic Brenta
2006-07-16  0:26 ` Jeffrey R. Carter
2006-07-16  8:45 ` Simon Wright
2006-07-16 12:17   ` Ludovic Brenta [this message]
2006-07-16 11:49 ` Martin Krischik
     [not found]   ` <1153052044.114830.184030@h48g2000cwc.googlegroups.com>
2006-07-16 12:30     ` Ludovic Brenta
     [not found]       ` <1153055835.051381.88680@m73g2000cwd.googlegroups.com>
2006-07-16 13:32         ` Ludovic Brenta
2006-07-16 20:06       ` 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