mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
PR bootstrap/54820
* configure.ac (have_static_libs): Force 'no' for GCC version < 4.5. * configure: Regenerate.
This commit is contained in:
parent
c81a67683f
commit
d25fac7114
@ -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>
|
2012-10-22 Eric Botcazou <ebotcazou@adacore.com>
|
||||||
|
|
||||||
PR bootstrap/54820
|
PR bootstrap/54820
|
||||||
|
4
configure
vendored
4
configure
vendored
@ -4892,6 +4892,10 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
|||||||
|
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
|
||||||
|
#error -static-libstdc++ not implemented
|
||||||
|
#endif
|
||||||
int main() {}
|
int main() {}
|
||||||
_ACEOF
|
_ACEOF
|
||||||
if ac_fn_cxx_try_link "$LINENO"; then :
|
if ac_fn_cxx_try_link "$LINENO"; then :
|
||||||
|
@ -1190,7 +1190,11 @@ if test "$GCC" = yes; then
|
|||||||
LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
|
LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
|
||||||
AC_MSG_CHECKING([whether g++ accepts -static-libstdc++ -static-libgcc])
|
AC_MSG_CHECKING([whether g++ accepts -static-libstdc++ -static-libgcc])
|
||||||
AC_LANG_PUSH(C++)
|
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([yes]); have_static_libs=yes],
|
||||||
[AC_MSG_RESULT([no])])
|
[AC_MSG_RESULT([no])])
|
||||||
AC_LANG_POP(C++)
|
AC_LANG_POP(C++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user