From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19150 invoked by alias); 20 Feb 2003 15:04:15 -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 19137 invoked from network); 20 Feb 2003 15:04:15 -0000 Received: from unknown (HELO mx1.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 20 Feb 2003 15:04:15 -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 h1KF4EN19745 for ; Thu, 20 Feb 2003 10:04:14 -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 h1KF4Ef05380 for ; Thu, 20 Feb 2003 10:04:14 -0500 Received: from localhost.localdomain (vpn50-1.rdu.redhat.com [172.16.50.1]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h1KF4EO17660; Thu, 20 Feb 2003 10:04:14 -0500 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id h1KF48v07590; Thu, 20 Feb 2003 08:04:08 -0700 Date: Thu, 20 Feb 2003 15:04:00 -0000 From: Kevin Buettner Message-Id: <1030220150408.ZM7589@localhost.localdomain> In-Reply-To: "Martin M. Hunt" "[RFA] fix AIX builds" (Feb 19, 9:40pm) References: <1045719632.1640.4.camel@Dragon> To: "Martin M. Hunt" , gdb-patches@sources.redhat.com Subject: Re: [RFA] fix AIX builds MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-02/txt/msg00480.txt.bz2 On Feb 19, 9:40pm, Martin M. Hunt wrote: > 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. Martin, The reason for Joel's patch of a few months ago is due to the fact that some versions of AIX contain a libpthdebug that's too old for aix-thread.c. See: http://sources.redhat.com/ml/gdb-patches/2002-11/msg00705.html You haven't reverted the portion which conditionally pulls in aix-thread.o. But you have backed out the portion which causes -lpthdebug to be positioned at an inopportune location on the link line. Setting it via NAT_CLIBS will always cause gdb (for native AIX) to be linked against libpthdebug. That *should* be okay. (I'm not completely certain though.) Just out of curiosity, did you try changing: CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" to: LIBS="${LIBS} -lpthdebug" ? If this works, I like it better... Kevin