From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11813 invoked by alias); 19 Jun 2002 21:09:29 -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 11746 invoked from network); 19 Jun 2002 21:09:24 -0000 Received: from unknown (HELO nerodeguest) (24.161.107.98) by sources.redhat.com with SMTP; 19 Jun 2002 21:09:24 -0000 Received: from neroden by nerodeguest with local (Exim 3.35 #1 (Debian)) id 17Kmge-0006ab-00; Wed, 19 Jun 2002 17:08:20 -0400 Date: Wed, 19 Jun 2002 14:09:00 -0000 To: gcc-patches@gcc.gnu.org Cc: dj@redhat.com, binutils@sources.redhat.com, gdb-patches@sources.redhat.com Subject: [patch] move libstdcxx_flags near where it's used Message-ID: <20020619210820.GA25316@doctormoo.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i From: Nathanael Nerode X-SW-Source: 2002-06/txt/msg00379.txt.bz2 Patch to top level configure to relocate the defintion of libstdcxx_flags. It's only used in one place in all of configure and configure.in, and it was defined WAAAY above that place. This was confusing me for a long time, since I thought there must be a reason for this. But there wasn't. (This will break my first reorg patch, but if it's accepted I'll resumbit it without that part). Tested on i686-pc-linux-gnu, no changes. 2002-06-19 Nathanael Nerode * configure.in: Move definition of libstdcxx_flags right above usage, rather than waaay earlier. Index: configure.in =================================================================== RCS file: /cvsroot/gcc/gcc/configure.in,v retrieving revision 1.155 diff -u -r1.155 configure.in --- configure.in 19 Jun 2002 17:39:21 -0000 1.155 +++ configure.in 19 Jun 2002 21:04:42 -0000 @@ -45,8 +45,6 @@ host_libs="intl mmalloc libiberty opcodes bfd readline db tcl tk tclX itcl tix libgui zlib" libstdcxx_version="target-libstdc++-v3" -# Don't use libstdc++-v3's flags to configure/build itself. -libstdcxx_flags='`case $$dir in libstdc++-v3 | libjava) ;; *) test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags --build-includes;; esac` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' # these tools are built for the host environment # Note, the powerpc-eabi build depends on sim occurring before gdb in order to @@ -1568,6 +1566,8 @@ *) GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)' ;; esac +# Don't use libstdc++-v3's flags to configure/build itself. +libstdcxx_flags='`case $$dir in libstdc++-v3 | libjava) ;; *) test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/testsuite_flags --build-includes;; esac` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' if test "x${CXX_FOR_TARGET+set}" = xset; then : elif test -d ${topsrcdir}/gcc; then