This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] fix AIX builds
- From: Kevin Buettner <kevinb at redhat dot com>
- To: "Martin M. Hunt" <hunt at redhat dot com>, gdb-patches at sources dot redhat dot com
- Date: Thu, 20 Feb 2003 08:04:08 -0700
- Subject: Re: [RFA] fix AIX builds
- References: <1045719632.1640.4.camel@Dragon>
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 <hunt at redhat dot com>
>
> * 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