diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2012-10-23 22:57:43 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2012-10-23 22:57:43 +0000 |
commit | 0d6414b24c4041d9a5f7ceaf382d189230702084 (patch) | |
tree | 36ccc334c30fd823107a6719f4510385a9b3ca6e /configure.ac | |
parent | a780583f8229301f894d1db9f2aa4a2415c2bddf (diff) | |
download | gcc-0d6414b24c4041d9a5f7ceaf382d189230702084.zip gcc-0d6414b24c4041d9a5f7ceaf382d189230702084.tar.gz gcc-0d6414b24c4041d9a5f7ceaf382d189230702084.tar.bz2 |
re PR bootstrap/54820 (ada: cannot find -lstdc++ since 4.8.0 20121002)
PR bootstrap/54820
* configure.ac (have_static_libs): Force 'no' for GCC version < 4.5.
* configure: Regenerate.
From-SVN: r192748
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 958eadd..c6665a1 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++) |