From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20787 invoked by alias); 13 Jun 2010 20:17:10 -0000 Received: (qmail 20778 invoked by uid 22791); 13 Jun 2010 20:17:08 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 13 Jun 2010 20:17:04 +0000 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 7DAAD1C15678; Sun, 13 Jun 2010 22:17:02 +0200 (CEST) Received: from igel.home (ppp-88-217-111-118.dynamic.mnet-online.de [88.217.111.118]) by mail.mnet-online.de (Postfix) with ESMTP id 703DD1C001B9; Sun, 13 Jun 2010 22:17:02 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id 47CBFCA297; Sun, 13 Jun 2010 22:17:02 +0200 (CEST) From: Andreas Schwab To: Jan Kratochvil Cc: "H.J. Lu" , gdb-patches@sourceware.org Subject: Re: [patch] Smaller gdb: -rdynamic -> -Wl,--dynamic-list References: <20100513131840.GA31032@host0.dyn.jankratochvil.net> <20100516180828.GA6448@host0.dyn.jankratochvil.net> X-Yow: Put FIVE DOZEN red GIRDLES in each CIRCULAR OPENING!! Date: Sun, 13 Jun 2010 20:17:00 -0000 In-Reply-To: (Andreas Schwab's message of "Sun, 13 Jun 2010 21:58:30 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-06/txt/msg00298.txt.bz2 Tested on ppc-linux. Andreas. 2010-06-13 Andreas Schwab * configure.ac: Check for RDYNAMIC also for cross builds. * configure: Regenerate. --- configure.ac.~1.122.~ 2010-06-12 23:13:19.000000000 +0200 +++ configure.ac 2010-06-13 22:09:54.000000000 +0200 @@ -1453,14 +1453,7 @@ aix*) ;; esac - -dnl For certain native configurations, we need to check whether thread -dnl support can be built in or not. -dnl -dnl Note that we only want this if we are both native (host == target), -dnl and not doing a canadian cross build (build == host). - -if test ${build} = ${host} -a ${host} = ${target} ; then +if test "${gdb_native}" = yes; then if test "$GCC" = "yes" ; then # The dynamically loaded libthread_db needs access to symbols in the gdb # executable. Older GNU ld supports --export-dynamic but --dynamic-list @@ -1507,7 +1500,15 @@ if test ${build} = ${host} -a ${host} = LDFLAGS="$old_LDFLAGS" AC_MSG_RESULT($found) fi +fi +dnl For certain native configurations, we need to check whether thread +dnl support can be built in or not. +dnl +dnl Note that we only want this if we are both native (host == target), +dnl and not doing a canadian cross build (build == host). + +if test ${build} = ${host} -a ${host} = ${target} ; then case ${host_os} in hpux*) AC_MSG_CHECKING(for HPUX/OSF thread support) -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."