mklibgcc.in (EXTRA_MULTILIB_PARTS): Generate multilib parts in-place.
authorAlexandre Oliva <aoliva@redhat.com>
Wed, 8 Nov 2000 03:51:34 +0000 (03:51 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Wed, 8 Nov 2000 03:51:34 +0000 (03:51 +0000)
* mklibgcc.in (EXTRA_MULTILIB_PARTS): Generate multilib parts
in-place.

From-SVN: r37312

gcc/ChangeLog
gcc/mklibgcc.in

index 7bb1251612675f2c928210c64ed8b192e57e3ef9..a2d1ad253d5d5d15c44bff4a31c5c878e7a974bc 100644 (file)
@@ -1,3 +1,8 @@
+2000-11-08  Alexandre Oliva  <aoliva@redhat.com>
+
+       * mklibgcc.in (EXTRA_MULTILIB_PARTS): Generate multilib parts
+       in-place.
+
 2000-11-07  Richard Henderson  <rth@redhat.com>
 
        * dwarfout.c (INSN_LABEL_FMT): Remove.
index 4d957fa063be48203c15ed26f9fd3a3f33dfc789..e9dc22cb7a26c061c6ef990289e8b9cb0cd7ea30 100644 (file)
@@ -358,23 +358,20 @@ echo '    done'
 echo ' if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi'
 
 for f in $EXTRA_MULTILIB_PARTS; do
-  lastout="stmp-dirs force"
   for ml in $MULTILIBS; do
     dir=`echo ${ml} | sed -e 's/;.*$//' -e 's/=/$(EQ)/g'`
     flags=`echo ${ml} | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`;
-    out="$dir/$f"
+    case $dir in
+    .) out=$f ; t= ;;
+    *) out="$dir/$f" ; t=$dir/ ;;
+    esac
 
-    # Depend on previous out to serialize all sub-makes of this
-    # target file.  This because ./$f is used as a temporary in
-    # each case before being moved to libgcc/$dir/.
-    echo $out: $lastout
+    echo $out: stmp-dirs
     echo "     $make_compile" \\
     echo '       LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)' $flags '" ' \\
-    echo '       MULTILIB_CFLAGS="'$flags'"' T=t t$f
-    echo "     mv t$f $out"
+    echo '       MULTILIB_CFLAGS="'$flags'"' T=$t $out
 
     all="$all $out"
-    lastout="$out"
   done
 done