Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: "Martin M. Hunt" <hunt@redhat.com>, gdb-patches@sources.redhat.com
Subject: Re: [RFA] fix AIX builds
Date: Thu, 20 Feb 2003 15:04:00 -0000	[thread overview]
Message-ID: <1030220150408.ZM7589@localhost.localdomain> (raw)
In-Reply-To: "Martin M. Hunt" <hunt@redhat.com> "[RFA] fix AIX builds" (Feb 19,  9:40pm)

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@redhat.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


  parent reply	other threads:[~2003-02-20 15:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-20  5:40 Martin M. Hunt
2003-02-20 13:04 ` Andrew Cagney
2003-02-20 15:04 ` Kevin Buettner [this message]
2003-02-20 23:19   ` Joel Brobecker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1030220150408.ZM7589@localhost.localdomain \
    --to=kevinb@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=hunt@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox