This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: gdb/294: Cannot build GDB 5.1.1 on AIX 4.3.3
- From: "Peter.Schauer" <Peter dot Schauer at regent dot e-technik dot tu-muenchen dot de>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 28 Jan 2002 11:38:01 -0000
- Subject: Re: gdb/294: Cannot build GDB 5.1.1 on AIX 4.3.3
- Reply-to: "Peter.Schauer" <Peter dot Schauer at regent dot e-technik dot tu-muenchen dot de>
The following reply was made to PR gdb/294; it has been noted by GNATS.
From: "Peter.Schauer" <Peter.Schauer@regent.e-technik.tu-muenchen.de>
To: jacques.lebastard@evidian.com
Cc: gdb-gnats@sources.redhat.com, ezannoni@redhat.com, kevinb@redhat.com
Subject: Re: gdb/294: Cannot build GDB 5.1.1 on AIX 4.3.3
Date: Mon, 28 Jan 2002 12:36:03 MET
Due to the following change:
2001-07-23 Elena Zannoni <ezannoni@redhat.com>
* config/powerpc/aix.mh (MH_LDFLAGS): Don't set these, the Gnu linker
doesn't understand them.
GDB now expects that gcc uses the GNU linker.
The patch below would revert this change and should fix your problem.
It seems however that we need an autoconfiguration option, which makes sure
that -Wl,-bbigtoc is added to MH_LDFLAGS if the compiler is using the native
linker.
*** gdb/config/powerpc/aix.mh.orig Fri Jan 18 05:51:05 2002
--- gdb/config/powerpc/aix.mh Mon Jan 28 12:28:15 2002
***************
*** 13,16 ****
# gdb is too big for all of its external symbols to fit in a small TOC
# It looks like the GNU linker doesn't understand the -bbigtoc switch.
# This switch may be needed for some vendor compilers.
! # MH_LDFLAGS = -Wl,-bbigtoc
--- 13,16 ----
# gdb is too big for all of its external symbols to fit in a small TOC
# It looks like the GNU linker doesn't understand the -bbigtoc switch.
# This switch may be needed for some vendor compilers.
! MH_LDFLAGS = -Wl,-bbigtoc
--
Peter Schauer pes@regent.e-technik.tu-muenchen.de