This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: ada/6767: make gnatlib-shared fails on -laddr2line
- From: Ludovic Brenta <ludovic dot brenta at insalien dot org>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 11 Jul 2002 22:56:01 -0000
- Subject: Re: ada/6767: make gnatlib-shared fails on -laddr2line
- Reply-to: Ludovic Brenta <ludovic dot brenta at insalien dot org>
The following reply was made to PR ada/6767; it has been noted by GNATS.
From: Ludovic Brenta <ludovic.brenta@insalien.org>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org
Cc:
Subject: Re: ada/6767: make gnatlib-shared fails on -laddr2line
Date: 12 Jul 2002 00:49:50 +0200
I have found that the following change to gcc/ada/Makefile.in reduces
but does not solve the problem. This change consists in atatically
linking libgnat.so against libiberty.a. The patch below is done only
on GNU/Linux on *86, perhaps it should also be done on other
platforms. With this change, I only get one undefined symbol and that
is `convert_addresses'.
It appears to me that old versions of gnat (3.11p being one) used to
include a copy of binutils that had this function in libaddr2line.a;
newer versions seem to not include binutils anymore, and the current
binutils no longer have this library.
--
Ludo.
*** Makefile.in.~1.21.10.4.~ Thu May 2 19:32:36 2002
--- Makefile.in Thu Jul 11 23:22:13 2002
***************
*** 1170,1176 ****
system.ads<5lsystem.ads
MLIB_TGT=5lml-tgt
! MISCLIB=-laddr2line -lbfd
THREADSLIB=-lpthread
GNATLIB_SHARED=gnatlib-shared-dual
GMEM_LIB=gmemlib
--- 1170,1176 ----
system.ads<5lsystem.ads
MLIB_TGT=5lml-tgt
! MISCLIB=-liberty -lbfd
THREADSLIB=-lpthread
GNATLIB_SHARED=gnatlib-shared-dual
GMEM_LIB=gmemlib