Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2012-10-24 03:02:33 +0400
committerEric Botcazou <ebotcazou@adacore.com>2012-10-24 03:02:33 +0400
commitd25fac71144904255ef38a506a259a5de2b4c2ad (patch)
tree521f7c6ec20485774eade9302d9aa514666e2ada /configure.ac
parentc81a67683f3c7f225fffcedc834271ea8755e935 (diff)
PR bootstrap/54820
* configure.ac (have_static_libs): Force 'no' for GCC version < 4.5. * configure: Regenerate.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 958eadd5e..c6665a1f3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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++)