From 8352cbb413ca035b1a646cc0e595a45cdd6e1426 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Tue, 25 May 2010 16:59:45 +0000 Subject: re PR libgcj/44216 (All libjava tests fail on IRIX 6.5: ld warns about -no-merge-exidx-entries) PR libgcj/44216 * configure.ac (libgcj_cv_exidx): Enable AC_LANG_WERROR. Save and restore werror flag. * configure: Regenerate. From-SVN: r159833 --- libjava/configure | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'libjava/configure') diff --git a/libjava/configure b/libjava/configure index 6be8109..8f54905 100755 --- a/libjava/configure +++ b/libjava/configure @@ -599,6 +599,7 @@ ac_includes_default="\ #endif" enable_option_checking=no +ac_c_werror_flag= ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS @@ -13338,7 +13339,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 13341 "configure" +#line 13342 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -13444,7 +13445,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 13447 "configure" +#line 13448 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -19423,7 +19424,7 @@ if test "${enable_sjlj_exceptions+set}" = set; then : enableval=$enable_sjlj_exceptions; : else cat > conftest.$ac_ext << EOF -#line 19426 "configure" +#line 19427 "configure" struct S { ~S(); }; void bar(); void foo() @@ -20528,6 +20529,14 @@ if test "${libgcj_cv_exidx+set}" = set; then : else saved_ldflags="$LDFLAGS" LDFLAGS="${LDFLAGS} -Wl,--no-merge-exidx-entries" + # The IRIX 6 ld doesn't recognize --no-merge-exidx-entries, but only + # warns about unknown options, which breaks the testsuite. So enable + # AC_LANG_WERROR, but there's currently (autoconf 2.64) no way to turn + # it off again. As a workaround, save and restore werror flag like + # AC_PATH_XTRA. + ac_xsave_c_werror_flag=$ac_c_werror_flag + +ac_c_werror_flag=yes if test x$gcc_no_link = xyes; then as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 fi @@ -20542,6 +20551,7 @@ else fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext + ac_c_werror_flag=$ac_xsave_c_werror_flag LDFLAGS="${saved_ldflags}" fi -- cgit v1.1