From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7341 invoked by alias); 6 Mar 2002 15:12:00 -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 7171 invoked from network); 6 Mar 2002 15:11:55 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.135.44) by sources.redhat.com with SMTP; 6 Mar 2002 15:11:55 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 4D7BB3D1D; Wed, 6 Mar 2002 10:11:35 -0500 (EST) Message-ID: <3C8631A7.2090803@cygnus.com> Date: Wed, 06 Mar 2002 07:12:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.8) Gecko/20020210 X-Accept-Language: en-us MIME-Version: 1.0 To: "Peter.Schauer" Cc: Alexandre Oliva , ezannoni@redhat.com, kevinb@redhat.com, gdb-patches@sources.redhat.com Subject: Re: GDB cvs won't build on AIX 4.1 References: <200203012351.AAA11503@reisser.regent.e-technik.tu-muenchen.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-03/txt/msg00070.txt.bz2 I just created gdb/390 to track this but then noticed that Peter is an AIX maintainer. Was that an OK? (Oh and don't forget, no one maintains configure.in everyone gets to change it, but only if they dare :-) enjoy, Andrew > 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. >> >> --=-=-= >