Submitted By: Joe Ciccone Date: 2006-11-09 Initial Package Version: 2.5 Origin: Joe Ciccone Upstream Status: Unknown Description: Checks to see if libgcc_eh has been provided by gcc. If it has the glibc will attempt to link to it. Rediffed for 2.7 by Jim Gifford Rediffed for 2.8 by Joe Ciccone diff -Naur glibc-2.8.orig/configure.in glibc-2.8/configure.in --- glibc-2.8.orig/configure.in 2008-04-11 13:52:55.000000000 -0400 +++ glibc-2.8/configure.in 2008-09-20 12:06:26.000000000 -0400 @@ -1395,6 +1395,23 @@ AC_DEFINE(HAVE_CC_WITH_LIBUNWIND) fi + AC_CACHE_CHECK(whether to link against libgcc_eh, + libc_cv_cc_with_libgcc_eh, [ + cat > conftest.c <&1 >/dev/null | grep -q " -lgcc_eh "; then + libc_cv_cc_with_libgcc_eh=yes + else + libc_cv_cc_with_libgcc_eh=no + fi + rm -f conftest*]) + AC_SUBST(libc_cv_cc_with_libgcc_eh) + if test $libc_cv_cc_with_libgcc_eh = yes; then + AC_DEFINE(HAVE_CC_WITH_LIBGCC_EH) + fi + AC_CACHE_CHECK(for -z nodelete option, libc_cv_z_nodelete, [dnl cat > conftest.c <&5 +echo $ECHO_N "checking whether to link against libgcc_eh... $ECHO_C" >&6; } +if test "${libc_cv_cc_with_libgcc_eh+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + cat > conftest.c <&1 >/dev/null | grep -q " -lgcc_eh "; then + libc_cv_cc_with_libgcc_eh=yes + else + libc_cv_cc_with_libgcc_eh=no + fi + rm -f conftest* +fi +{ echo "$as_me:$LINENO: result: $libc_cv_cc_with_libgcc_eh" >&5 +echo "${ECHO_T}$libc_cv_cc_with_libgcc_eh" >&6; } + + if test $libc_cv_cc_with_libgcc_eh = yes; then + cat >>confdefs.h <<\_ACEOF +#define HAVE_CC_WITH_LIBGCC_EH 1 +_ACEOF + + fi + { echo "$as_me:$LINENO: checking for -z nodelete option" >&5 echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6; } if test "${libc_cv_z_nodelete+set}" = set; then @@ -9250,6 +9278,7 @@ BISON!$BISON$ac_delim VERSIONING!$VERSIONING$ac_delim libc_cv_cc_with_libunwind!$libc_cv_cc_with_libunwind$ac_delim +libc_cv_cc_with_libgcc_eh!$libc_cv_cc_with_libgcc_eh$ac_delim libc_cv_Bgroup!$libc_cv_Bgroup$ac_delim libc_cv_libgcc_s_suffix!$libc_cv_libgcc_s_suffix$ac_delim libc_cv_as_needed!$libc_cv_as_needed$ac_delim @@ -9301,7 +9330,7 @@ LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 52; then + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5