Fix powerpc64 ld testsuite fail
authorAlan Modra <amodra@gmail.com>
Wed, 27 Apr 2016 07:21:15 +0000 (16:51 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 27 Apr 2016 07:37:26 +0000 (17:07 +0930)
PR target/19985
* configure.tgt: Don't use var+=.

ld/ChangeLog
ld/configure.tgt

index 4dd2cbc1f67c8f32f2e0c8cd6bf602822952f179..21e7c77cc47005ea6f05e8b98dd03f05ede17ed0 100644 (file)
@@ -1,3 +1,8 @@
+2016-04-27  Alan Modra  <amodra@gmail.com>
+
+       PR target/19985
+       * configure.tgt: Don't use var+=.
+
 2016-04-25  Nick Clifton  <nickc@redhat.com>
 
        PR target/19985
index da89e2b95ecf26aaf838e983ff039886daf17917..1f6db426a734e141a36dba4dc43eb047b23e4aa3 100644 (file)
@@ -626,9 +626,9 @@ powerpc*-*-elf* | powerpc*-*-eabi* | powerpc*-*-sysv* \
                                # PR 19985: Include big endian emulations.
                                for z in targ_extra_emuls targ_extra_libpath targ64_extra_emuls targ64_extra_libpath
                                do
-                                 eval ${z}+=\" `eval echo \\$${z} | sed -e 's/ppc/lppc/g'`\"
+                                 eval ${z}=\"\$${z} `eval echo \\$${z} | sed -e 's/ppc/lppc/g'`\"
                                done
-                               eval targ_extra_emuls+=\" \$targ_emul\"
+                               targ_extra_emuls="$targ_extra_emuls $targ_emul"
                                eval targ_emul=\"`eval echo \\$targ_emul | sed -e 's/ppc/lppc/g'`\"
                        esac ;;
 powerpc-*-nto*)         targ_emul=elf32ppcnto ;;