[PATCH] Fix combined tree for LTO
Thomas Schwinge
thomas@codesourcery.com
Thu Dec 20 15:59:00 GMT 2012
Hi!
On Sat, 10 Nov 2012 10:32:07 -0800, Andrew Pinski <andrew.pinski@caviumnetworks.com> wrote:
> 2012-11-10 Andrew Pinski <apinski@cavium.com>
>
> PR bootstrap/55202
> * configure.ac: Set PLUGIN_LD_SUFFIX to just "ld" if it was "ld-new"
> or "collect-ld".
> * configure: Regenerate.
> Index: configure.ac
> ===================================================================
> --- configure.ac (revision 193392)
> +++ configure.ac (working copy)
> @@ -2003,6 +2003,12 @@ fi])
>
> ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
> PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
> +# if the PLUGIN_LD is set ld-new, just have it as ld
> +# as that is the installed named.
> +if test x$PLUGIN_LD_SUFFIX == xld-new \
> + || test x$PLUGIN_LD_SUFFIX == xcollect-ld ; then
> + PLUGIN_LD_SUFFIX=ld
> +fi
Using dash, this caused:
checking for ld... /usr/bin/ld
[...]/gcc/configure: 21384: test: xld: unexpected operator
[...]/gcc/configure: 21385: test: xld: unexpected operator
checking whether we are using gold... no
Fixed in r194637:
PR bootstrap/55202
* configure.ac <PLUGIN_LD_SUFFIX>: Use POSIX shell syntax.
* configure: Regenerate.
diff --git gcc/configure.ac gcc/configure.ac
index c6f57bd..7abe7cf 100644
--- gcc/configure.ac
+++ gcc/configure.ac
@@ -2031,8 +2031,8 @@ ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
PLUGIN_LD_SUFFIX=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
# if the PLUGIN_LD is set ld-new, just have it as ld
# as that is the installed named.
-if test x$PLUGIN_LD_SUFFIX == xld-new \
- || test x$PLUGIN_LD_SUFFIX == xcollect-ld ; then
+if test x$PLUGIN_LD_SUFFIX = xld-new \
+ || test x$PLUGIN_LD_SUFFIX = xcollect-ld ; then
PLUGIN_LD_SUFFIX=ld
fi
AC_ARG_WITH(plugin-ld,
Grüße,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20121220/776f4e5e/attachment.sig>
More information about the Gcc-patches
mailing list