From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14557 invoked by alias); 20 Feb 2003 05:40:29 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 14550 invoked from network); 20 Feb 2003 05:40:28 -0000 Received: from unknown (HELO mx1.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 20 Feb 2003 05:40:28 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h1K5eSN10349 for ; Thu, 20 Feb 2003 00:40:28 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h1K5eSf16277 for ; Thu, 20 Feb 2003 00:40:28 -0500 Received: from dragon (romulus-int.sfbay.redhat.com [172.16.27.46]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h1K5eRO15217 for ; Thu, 20 Feb 2003 00:40:28 -0500 Subject: [RFA] fix AIX builds From: "Martin M. Hunt" To: gdb-patches@sources.redhat.com Content-Type: multipart/mixed; boundary="=-iv45Wa5zeYQZceHdg9em" Date: Thu, 20 Feb 2003 05:40:00 -0000 Message-Id: <1045719632.1640.4.camel@Dragon> Mime-Version: 1.0 X-SW-Source: 2003-02/txt/msg00471.txt.bz2 --=-iv45Wa5zeYQZceHdg9em Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 548 AIX builds are failing because CONFIG_LDFLAGS is getting set to -lpthdebug which results in the library being linked before all the object files. The library needs to be after the object files and CONFIG_LDFLAGS is for flags not libraries. This patch basically reverts a previous one from a few months ago. There might be a better way to do this but this seems to work OK for me. 2003-02-19 Martin M. Hunt * configure.in: Don't set CONFIG_LDFLAGS to -lpthdebug. * config/powerpc/aix432.mh (NAT_CLIBS): Set to -lpthdebug. --=-iv45Wa5zeYQZceHdg9em Content-Disposition: attachment; filename=p Content-Transfer-Encoding: quoted-printable Content-Type: text/x-patch; name=p; charset=UTF-8 Content-length: 1316 Index: configure.in =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gdb/configure.in,v retrieving revision 1.124 diff -u -r1.124 configure.in --- configure.in 17 Feb 2003 21:56:29 -0000 1.124 +++ configure.in 20 Feb 2003 05:35:58 -0000 @@ -875,7 +875,6 @@ if test $gdb_cv_have_aix_thread_debug =3D yes; then CONFIG_SRCS=3D"${CONFIG_SRCS} aix-thread.c" CONFIG_LIB_OBS=3D"${CONFIG_LIB_OBS} aix-thread.o" - CONFIG_LDFLAGS=3D"${CONFIG_LDFLAGS} -lpthdebug" fi ;; esac Index: config/powerpc/aix432.mh =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gdb/config/powerpc/aix432.mh,v retrieving revision 1.3 diff -u -r1.3 aix432.mh --- config/powerpc/aix432.mh 2 Dec 2002 15:44:22 -0000 1.3 +++ config/powerpc/aix432.mh 20 Feb 2003 05:35:58 -0000 @@ -17,3 +17,5 @@ # This switch may be needed for some vendor compilers. # MH_LDFLAGS =3D -Wl,-bbigtoc =20 +# pthread debugging support +NAT_CLIBS =3D -lpthdebug --=-iv45Wa5zeYQZceHdg9em--