X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gcc%2Fmklibgcc.in;h=cfef2bfc2c47b37b36763694058deac84fee1793;hb=aaf67a14509df6d685d280b7be4ed0f0996fcbc5;hp=916a0f5e3f0490ce10187eaf38c1704240c63a52;hpb=dafb7f3f52bbc30f565060d5d63bc93614a97806;p=gcc.git diff --git a/gcc/mklibgcc.in b/gcc/mklibgcc.in index 916a0f5e3f0..cfef2bfc2c4 100644 --- a/gcc/mklibgcc.in +++ b/gcc/mklibgcc.in @@ -666,36 +666,34 @@ for ml in $MULTILIBS; do # simultaneous goal targets, so that rules which cannot execute # simultaneously are properly serialized. - # We don't need to build the default ones since they have been - # built before we get here. - if [ $dir != "." ]; then - extra= - t=$dir/ - echo - for f in $EXTRA_MULTILIB_PARTS; do - out=$dir/$f - case $out in - # Prevent `make' from interpreting $out as a macro assignment - *'$(EQ)'*) targ="T_TARGET=$out T_TARGET" ;; - *) targ=$out ;; - esac - extra="$extra $targ" - done - - echo extra$suffix: stmp-dirs - echo " $make_compile" \\ - echo ' LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)' $flags '" ' \\ - echo ' MULTILIB_CFLAGS="'$flags'"' T=$t $extra - echo "all: extra$suffix" - - # Make libunwind.so and libgcc_s.so depend on these, since they - # are likely to be implicitly used by the link process. - if [ "$libgcc_s_so" ]; then - echo "$libgcc_s_so: extra$suffix" - fi - if [ "$libunwind_so" ]; then - echo "$libunwind_so: extra$suffix" - fi + extra= + echo + for f in $EXTRA_MULTILIB_PARTS; do + case $dir in + .) out=$f ; t= ;; + *) out=$dir/$f ; t=$dir/ ;; + esac + case $out in + # Prevent `make' from interpreting $out as a macro assignment + *'$(EQ)'*) targ="T_TARGET=$out T_TARGET" ;; + *) targ=$out ;; + esac + extra="$extra $targ" + done + + echo extra$suffix: stmp-dirs + echo " $make_compile" \\ + echo ' LIBGCC2_CFLAGS="$(LIBGCC2_CFLAGS)' $flags '" ' \\ + echo ' MULTILIB_CFLAGS="'$flags'"' T=$t $extra + echo "all: extra$suffix" + + # Make libunwind.so and libgcc_s.so depend on these, since they + # are likely to be implicitly used by the link process. + if [ "$libgcc_s_so" ]; then + echo "$libgcc_s_so: extra$suffix" + fi + if [ "$libunwind_so" ]; then + echo "$libunwind_so: extra$suffix" fi fi