From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18111 invoked by alias); 1 Mar 2002 23:51:40 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 18033 invoked from network); 1 Mar 2002 23:51:35 -0000 Received: from unknown (HELO rennsau.regent.e-technik.tu-muenchen.de) (129.187.231.63) by sources.redhat.com with SMTP; 1 Mar 2002 23:51:35 -0000 Received: from reisser.regent.e-technik.tu-muenchen.de (reisser.regent.e-technik.tu-muenchen.de [129.187.231.143]) by rennsau.regent.e-technik.tu-muenchen.de (8.8.8/8.6.9) with ESMTP id AAA28680 ; Sat, 2 Mar 2002 00:51:35 +0100 (MET) From: "Peter.Schauer" Received: (pes@localhost) by reisser.regent.e-technik.tu-muenchen.de (8.8.8/8.6.9) id AAA11503 ; Sat, 2 Mar 2002 00:51:34 +0100 (MET) Message-Id: <200203012351.AAA11503@reisser.regent.e-technik.tu-muenchen.de> Subject: Re: GDB cvs won't build on AIX 4.1 To: aoliva@redhat.com (Alexandre Oliva) Date: Fri, 01 Mar 2002 15:51:00 -0000 Cc: ezannoni@redhat.com, kevinb@redhat.com, ac131313@cygnus.com, gdb@sources.redhat.com In-Reply-To: ; from "Alexandre Oliva" at Feb 24, 102 2:10 pm X-Mailer: ELM [version 2.3 PL6] X-SW-Source: 2002-03/txt/msg00003.txt.bz2 I am no autoconf expert, but it looks ok to me. It would be nice, if it could make it into the upcoming GDB release. > --=-=-= > > On Feb 4, 2002, "Peter.Schauer" wrote: > > > -mminimal-toc is only available with gcc, so we might loose again, if someone > > tries to build GDB with the native compiler. > > Besides, I'm not convinced the performance loss of -mminimal-toc would > be smaller than that of -bbigtoc, so I went with the latter for now. > Tested on AIX 4.1. Ok to install? > > > --=-=-= > Content-Type: text/x-patch > Content-Disposition: inline; filename=gdb-aix-bigtoc.patch > > Index: gdb/ChangeLog > from Alexandre Oliva > > * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX. > * configure: Rebuilt. > > Index: gdb/configure.in > =================================================================== > RCS file: /cvs/src/src/gdb/configure.in,v > retrieving revision 1.82 > diff -u -p -r1.82 configure.in > --- gdb/configure.in 2002/02/24 04:31:13 1.82 > +++ gdb/configure.in 2002/02/24 13:05:16 > @@ -511,6 +511,23 @@ AC_MSG_RESULT($gdb_cv_scanf_has_long_dou > > AC_FUNC_MMAP > > +case ${host_os} in > +aix*) > + AC_CACHE_CHECK([for -bbigtoc option], [gdb_cv_bigtoc], [ > + SAVE_LDFLAGS=$LDFLAGS > + > + case $GCC in > + yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; > + *) gdb_cv_bigtoc=-bbigtoc ;; > + esac > + > + LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc > + AC_TRY_LINK([], [int i;], [], [gdb_cv_bigtoc=]) > + ]) > + CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" > + ;; > +esac > + > dnl See if thread_db library is around for Solaris thread debugging. Note that > dnl we must explicitly test for version 1 of the library because version 0 > dnl (present on Solaris 2.4 or earlier) doesn't have the same API. > > --=-=-= > > > -- > Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ > Red Hat GCC Developer aoliva@{cygnus.com, redhat.com} > CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} > Free Software Evangelist Professional serial bug killer > > --=-=-=-- > > -- Peter Schauer pes@regent.e-technik.tu-muenchen.de