]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR bootstrap/54820
authorEric Botcazou <ebotcazou@libertysurf.fr>
Tue, 23 Oct 2012 23:02:33 +0000 (23:02 +0000)
committerEric Botcazou <ebotcazou@libertysurf.fr>
Tue, 23 Oct 2012 23:02:33 +0000 (23:02 +0000)
* configure.ac (have_static_libs): Force 'no' for GCC version < 4.5.
* configure: Regenerate.

ChangeLog
configure
configure.ac

index b526a8f0aaa93c480b85288b8e4bc16e03bcfe74..f655adc33cfa8247b6e3f949d0a1e83d236dbc7a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-10-23  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR bootstrap/54820
+       * configure.ac (have_static_libs): Force 'no' for GCC version < 4.5.
+       * configure: Regenerate.
+
 2012-10-22  Eric Botcazou  <ebotcazou@adacore.com>
 
        PR bootstrap/54820
index b2d28d5215454d3bb17c9f4c243c0359a4d8cb51..4d9fc2a4e0e37e769f333c9fcf45038d880636f6 100755 (executable)
--- a/configure
+++ b/configure
@@ -4892,6 +4892,10 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
+
+#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
+#error -static-libstdc++ not implemented
+#endif
 int main() {}
 _ACEOF
 if ac_fn_cxx_try_link "$LINENO"; then :
index 958eadd5e7818058a2d558da9599a9e65e6936eb..c6665a1f33a87ac67b86d0d51ab8b81794294078 100644 (file)
@@ -1190,7 +1190,11 @@ if test "$GCC" = yes; then
   LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
   AC_MSG_CHECKING([whether g++ accepts -static-libstdc++ -static-libgcc])
   AC_LANG_PUSH(C++)
-  AC_LINK_IFELSE([int main() {}],
+  AC_LINK_IFELSE([
+#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
+#error -static-libstdc++ not implemented
+#endif
+int main() {}],
     [AC_MSG_RESULT([yes]); have_static_libs=yes],
     [AC_MSG_RESULT([no])])
   AC_LANG_POP(C++)