diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7bb12516126..a2d1ad253d5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-11-08 Alexandre Oliva + + * mklibgcc.in (EXTRA_MULTILIB_PARTS): Generate multilib parts + in-place. + 2000-11-07 Richard Henderson * dwarfout.c (INSN_LABEL_FMT): Remove. diff --git a/gcc/mklibgcc.in b/gcc/mklibgcc.in index 4d957fa063b..e9dc22cb7a2 100644 --- a/gcc/mklibgcc.in +++ b/gcc/mklibgcc.in @@ -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