From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27232 invoked by alias); 2 Jul 2002 19:44:15 -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 26670 invoked from network); 2 Jul 2002 19:41:59 -0000 Received: from unknown (HELO nerodeguest) (24.161.107.98) by sources.redhat.com with SMTP; 2 Jul 2002 19:41:57 -0000 Received: from neroden by nerodeguest with local (Exim 3.35 #1 (Debian)) id 17PTUl-0004w6-00; Tue, 02 Jul 2002 15:39:27 -0400 Date: Tue, 02 Jul 2002 12:44:00 -0000 To: gcc-patches@gcc.gnu.org, gdb-patches@sources.redhat.com, binutils@sources.redhat.com, dj@redhat.com Subject: [patch] target makefile frag collection, REALLY correct. Message-ID: <20020702193927.GA18968@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-07/txt/msg00042.txt.bz2 Of course, my previous version was wrong. Here's the really final version. (ick) 2002-07-02 Nathanael Nerode * configure.in: Rearrange target Makefile fragment collection. Index: configure.in =================================================================== RCS file: /cvs/gcc/gcc/configure.in,v retrieving revision 1.166 diff -u -r1.166 configure.in --- configure.in 2 Jul 2002 18:01:37 -0000 1.166 +++ configure.in 2 Jul 2002 19:39:07 -0000 @@ -1178,44 +1178,47 @@ case "${target}" in v810*) - target_makefile_frag="${target_makefile_frag} config/mt-v810" + target_makefile_frag="config/mt-v810" ;; i[3456]86-*-netware*) - target_makefile_frag="${target_makefile_frag} config/mt-netware" + target_makefile_frag="config/mt-netware" ;; powerpc-*-netware*) - target_makefile_frag="${target_makefile_frag} config/mt-netware" - ;; - alpha*-*-linux*) - target_makefile_frag="${target_makefile_frag} config/mt-linux" - target_makefile_frag="${target_makefile_frag} config/mt-alphaieee" - ;; - alpha*-*-*) - target_makefile_frag="${target_makefile_frag} config/mt-alphaieee" + target_makefile_frag="config/mt-netware" ;; *-*-linux*) - target_makefile_frag="${target_makefile_frag} config/mt-linux" + target_makefile_frag="config/mt-linux" ;; *-*-aix4.[3456789]* | *-*-aix[56789].*) - target_makefile_frag="${target_makefile_frag} config/mt-aix43" + target_makefile_frag="config/mt-aix43" ;; mips*-*-pe | sh*-*-pe | *arm-wince-pe) - target_makefile_frag="${target_makefile_frag} config/mt-wince" + target_makefile_frag="config/mt-wince" + ;; +esac + +alphaieee_frag= +case $target in + alpha*-*-*) + # This just makes sure to use the -mieee option to build target libs. + # This should probably be set individually by each library. + alphaieee_frag="config/mt-alphaieee" ;; esac # If --enable-target-optspace always use -Os instead of -O2 to build # the target libraries, similarly if it is not specified, use -Os # on selected platforms. +ospace_frag= case "${enable_target_optspace}:${target}" in yes:*) - target_makefile_frag="${target_makefile_frag} config/mt-ospace" + ospace_frag="config/mt-ospace" ;; :d30v-*) - target_makefile_frag="${target_makefile_frag} config/mt-d30v" + ospace_frag="config/mt-d30v" ;; :m32r-* | :d10v-* | :fr30-*) - target_makefile_frag="${target_makefile_frag} config/mt-ospace" + ospace_frag="config/mt-ospace" ;; no:* | :*) ;; @@ -1225,8 +1228,8 @@ esac rm -f mt-frag -if test -n "${target_makefile_frag}" ; then - for f in ${target_makefile_frag} +if test -n "${target_makefile_frag}${alphaieee_frag}${ospace_frag}" ; then + for f in ${target_makefile_frag} ${alphaieee_frag} ${ospace_frag} do cat ${srcdir}/$f >> mt-frag done