source:
patches/glibc-2.7-libgcc_eh-1.patch@
3998188
Last change on this file since 3998188 was bfb94b2, checked in by , 17 years ago | |
---|---|
|
|
File size: 4.4 KB |
-
Makeconfig
Submitted By: Joe Ciccone <jciccone@linuxfromscratch.org> 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 diff -Naur glibc-2.7.orig/Makeconfig glibc-2.7/Makeconfig
old new 524 524 libunwind = -lunwind 525 525 endif 526 526 ifneq ($(have-as-needed),yes) 527 ifneq ($(have-cc-with-libgcc_eh),yes) 528 libgcc_eh := $(libunwind) 529 else 527 530 libgcc_eh := -lgcc_eh $(libunwind) 531 endif 528 532 else 529 533 libgcc_eh := -Wl,--as-needed -lgcc_s$(libgcc_s_suffix) $(libunwind) -Wl,--no-as-needed 530 534 endif 531 535 gnulib := -lgcc $(libgcc_eh) 532 static-gnulib := -lgcc -lgcc_eh $(libunwind) 536 ifneq ($(have-cc-with-libgcc_eh),yes) 537 static-gnulib := -lgcc $(libunwind) 538 else 539 static-gnulib := -lgcc -lgcc_eh $(libunwind) 540 endif 533 541 libc.so-gnulib := -lgcc 534 542 endif 535 543 ifeq ($(elf),yes) -
config.make.in
diff -Naur glibc-2.7.orig/config.make.in glibc-2.7/config.make.in
old new 60 60 have-libaudit = @have_libaudit@ 61 61 have-libcap = @have_libcap@ 62 62 have-cc-with-libunwind = @libc_cv_cc_with_libunwind@ 63 have-cc-with-libgcc_eh = @libc_cv_cc_with_libgcc_eh@ 63 64 fno-unit-at-a-time = @fno_unit_at_a_time@ 64 65 bind-now = @bindnow@ 65 66 have-hash-style = @libc_cv_hashstyle@ -
configure
diff -Naur glibc-2.7.orig/configure glibc-2.7/configure
old new 716 716 BISON 717 717 VERSIONING 718 718 libc_cv_cc_with_libunwind 719 libc_cv_cc_with_libgcc_eh 719 720 libc_cv_Bgroup 720 721 libc_cv_libgcc_s_suffix 721 722 libc_cv_as_needed … … 6045 6046 6046 6047 fi 6047 6048 6049 { echo "$as_me:$LINENO: checking whether to link against libgcc_eh" >&5 6050 echo $ECHO_N "checking whether to link against libgcc_eh... $ECHO_C" >&6; } 6051 if test "${libc_cv_cc_with_libgcc_eh+set}" = set; then 6052 echo $ECHO_N "(cached) $ECHO_C" >&6 6053 else 6054 6055 cat > conftest.c <<EOF 6056 int main (void) { return 0; } 6057 EOF 6058 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \ 6059 conftest.c -v 2>&1 >/dev/null | grep -q " -lgcc_eh "; then 6060 libc_cv_cc_with_libgcc_eh=yes 6061 else 6062 libc_cv_cc_with_libgcc_eh=no 6063 fi 6064 rm -f conftest* 6065 fi 6066 { echo "$as_me:$LINENO: result: $libc_cv_cc_with_libgcc_eh" >&5 6067 echo "${ECHO_T}$libc_cv_cc_with_libgcc_eh" >&6; } 6068 6069 if test $libc_cv_cc_with_libgcc_eh = yes; then 6070 cat >>confdefs.h <<\_ACEOF 6071 #define HAVE_CC_WITH_LIBGCC_EH 1 6072 _ACEOF 6073 6074 fi 6075 6048 6076 { echo "$as_me:$LINENO: checking for -z nodelete option" >&5 6049 6077 echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6; } 6050 6078 if test "${libc_cv_z_nodelete+set}" = set; then … … 9243 9271 BISON!$BISON$ac_delim 9244 9272 VERSIONING!$VERSIONING$ac_delim 9245 9273 libc_cv_cc_with_libunwind!$libc_cv_cc_with_libunwind$ac_delim 9274 libc_cv_cc_with_libgcc_eh!$libc_cv_cc_with_libgcc_eh$ac_delim 9246 9275 libc_cv_Bgroup!$libc_cv_Bgroup$ac_delim 9247 9276 libc_cv_libgcc_s_suffix!$libc_cv_libgcc_s_suffix$ac_delim 9248 9277 libc_cv_as_needed!$libc_cv_as_needed$ac_delim … … 9294 9323 LTLIBOBJS!$LTLIBOBJS$ac_delim 9295 9324 _ACEOF 9296 9325 9297 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5 2; then9326 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then 9298 9327 break 9299 9328 elif $ac_last_try; then 9300 9329 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 -
configure.in
diff -Naur glibc-2.7.orig/configure.in glibc-2.7/configure.in
old new 1388 1388 AC_DEFINE(HAVE_CC_WITH_LIBUNWIND) 1389 1389 fi 1390 1390 1391 AC_CACHE_CHECK(whether to link against libgcc_eh, 1392 libc_cv_cc_with_libgcc_eh, [ 1393 cat > conftest.c <<EOF 1394 int main (void) { return 0; } 1395 EOF 1396 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \ 1397 conftest.c -v 2>&1 >/dev/null | grep -q " -lgcc_eh "; then 1398 libc_cv_cc_with_libgcc_eh=yes 1399 else 1400 libc_cv_cc_with_libgcc_eh=no 1401 fi 1402 rm -f conftest*]) 1403 AC_SUBST(libc_cv_cc_with_libgcc_eh) 1404 if test $libc_cv_cc_with_libgcc_eh = yes; then 1405 AC_DEFINE(HAVE_CC_WITH_LIBGCC_EH) 1406 fi 1407 1391 1408 AC_CACHE_CHECK(for -z nodelete option, 1392 1409 libc_cv_z_nodelete, [dnl 1393 1410 cat > conftest.c <<EOF
Note:
See TracBrowser
for help on using the repository browser.