From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27548 invoked by alias); 11 Jul 2002 22:56:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 27534 invoked by uid 71); 11 Jul 2002 22:56:01 -0000 Date: Thu, 11 Jul 2002 15:56:00 -0000 Message-ID: <20020711225601.27533.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Ludovic Brenta Subject: Re: ada/6767: make gnatlib-shared fails on -laddr2line Reply-To: Ludovic Brenta X-SW-Source: 2002-07/txt/msg00368.txt.bz2 List-Id: The following reply was made to PR ada/6767; it has been noted by GNATS. From: Ludovic Brenta 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