This fixes PR49907 - ok for trunk?

Thanks,
Richard.

2011-08-01  Richard Guenther  <rguent...@suse.de>

        PR bootstrap/49907
        lto-plugin/
        * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
        * Makefile.am (AM_CFLAGS): Adjust.  Do not build with -Werror.
        * configure: Regenerate.
        * Makefile.in: Likewise.
        * aclocal.m4: Likewise.

Index: configure.ac
===================================================================
--- configure.ac        (revision 177016)
+++ configure.ac        (working copy)
@@ -6,6 +6,7 @@ AM_INIT_AUTOMAKE([foreign no-dist])
 AM_MAINTAINER_MODE
 AC_PROG_CC
 AC_SYS_LARGEFILE
+ACX_PROG_CC_WARNING_OPTS([-Wall], [ac_lto_plugin_warn_cflags])
 AM_PROG_LIBTOOL
 ACX_LT_HOST_FLAGS
 AC_SUBST(target_noncanonical)
Index: Makefile.am
===================================================================
--- Makefile.am (revision 177016)
+++ Makefile.am (working copy)
@@ -8,7 +8,7 @@ target_noncanonical := @target_noncanoni
 libexecsubdir := $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
 
 AM_CPPFLAGS = -I$(top_srcdir)/../include $(DEFS)
-AM_CFLAGS = -Wall -Werror
+AM_CFLAGS = @ac_lto_plugin_warn_cflags@
 AM_LIBTOOLFLAGS = --tag=disable-static
 
 libexecsub_LTLIBRARIES = liblto_plugin.la

Reply via email to