mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 08:11:08 +00:00
* configure.in: Check for __register_frame_info in both
-lgcc and -lgcc_eh. * configure: Regenerated.
This commit is contained in:
parent
fabb2e1c04
commit
426074293f
@ -1,3 +1,9 @@
|
|||||||
|
2003-04-02 Daniel Jacobowitz <drow@mvista.com>
|
||||||
|
|
||||||
|
* configure.in: Check for __register_frame_info in both
|
||||||
|
-lgcc and -lgcc_eh.
|
||||||
|
* configure: Regenerated.
|
||||||
|
|
||||||
2003-04-01 Roland McGrath <roland@redhat.com>
|
2003-04-01 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
* scripts/abilist.awk: Allow dots in soname suffix.
|
* scripts/abilist.awk: Allow dots in soname suffix.
|
||||||
|
31
configure
vendored
31
configure
vendored
@ -5548,28 +5548,23 @@ abort () {}
|
|||||||
__bzero () {}
|
__bzero () {}
|
||||||
dl_iterate_phdr () {}
|
dl_iterate_phdr () {}
|
||||||
EOF
|
EOF
|
||||||
if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
|
|
||||||
-nostdlib -nostartfiles
|
|
||||||
-o conftest conftest.c -lgcc >&5'
|
|
||||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
|
||||||
(eval $ac_try) 2>&5
|
|
||||||
ac_status=$?
|
|
||||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
||||||
(exit $ac_status); }; }; then
|
|
||||||
libc_cv_gcc_dwarf2_unwind_info=static
|
|
||||||
else
|
|
||||||
libc_cv_gcc_dwarf2_unwind_info=no
|
|
||||||
fi
|
|
||||||
# Some platforms' specs put -lgcc first. The second one doesn't hurt.
|
|
||||||
libc_unwind_check="${CC-cc} $CFLAGS -DCHECK__register_frame_info \
|
libc_unwind_check="${CC-cc} $CFLAGS -DCHECK__register_frame_info \
|
||||||
-nostdlib -nostartfiles -o conftest conftest.c \
|
-nostdlib -nostartfiles -o conftest conftest.c \
|
||||||
-lgcc -lgcc_eh -lgcc"
|
-lgcc"
|
||||||
|
# Some platforms' specs put -lgcc first. The second one doesn't hurt.
|
||||||
if { ac_try='$libc_unwind_check >&5'
|
if { ac_try='$libc_unwind_check >&5'
|
||||||
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
(eval $ac_try) 2>&5
|
(eval $ac_try) 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
(exit $ac_status); }; }; then
|
(exit $ac_status); }; } ||
|
||||||
|
{ ac_try='$libc_unwind_check -lgcc_eh -lgcc >&5'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; }
|
||||||
|
then
|
||||||
if $libc_unwind_check -v 2>&1 >/dev/null \
|
if $libc_unwind_check -v 2>&1 >/dev/null \
|
||||||
| grep -q -- --eh-frame-hdr; then
|
| grep -q -- --eh-frame-hdr; then
|
||||||
libc_cv_gcc_dwarf2_unwind_info=no_registry_needed
|
libc_cv_gcc_dwarf2_unwind_info=no_registry_needed
|
||||||
@ -5622,7 +5617,7 @@ if test "${libc_cv_gcc_builtin_expect+set}" = set; then
|
|||||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||||
else
|
else
|
||||||
cat > conftest.c <<EOF
|
cat > conftest.c <<EOF
|
||||||
#line 5625 "configure"
|
#line 5620 "configure"
|
||||||
int foo (int a)
|
int foo (int a)
|
||||||
{
|
{
|
||||||
a = __builtin_expect (a, 10);
|
a = __builtin_expect (a, 10);
|
||||||
@ -5690,7 +5685,7 @@ if test "${libc_cv_gcc_subtract_local_labels+set}" = set; then
|
|||||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||||
else
|
else
|
||||||
cat > conftest.c <<EOF
|
cat > conftest.c <<EOF
|
||||||
#line 5693 "configure"
|
#line 5688 "configure"
|
||||||
int foo (int a)
|
int foo (int a)
|
||||||
{
|
{
|
||||||
static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
|
static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
|
||||||
|
18
configure.in
18
configure.in
@ -1604,19 +1604,13 @@ abort () {}
|
|||||||
__bzero () {}
|
__bzero () {}
|
||||||
dl_iterate_phdr () {}
|
dl_iterate_phdr () {}
|
||||||
EOF
|
EOF
|
||||||
dnl No \ in command here because it ends up inside ''.
|
|
||||||
if AC_TRY_COMMAND([${CC-cc} $CFLAGS -DCHECK__register_frame_info
|
|
||||||
-nostdlib -nostartfiles
|
|
||||||
-o conftest conftest.c -lgcc >&AS_MESSAGE_LOG_FD]); then
|
|
||||||
libc_cv_gcc_dwarf2_unwind_info=static
|
|
||||||
else
|
|
||||||
libc_cv_gcc_dwarf2_unwind_info=no
|
|
||||||
fi
|
|
||||||
# Some platforms' specs put -lgcc first. The second one doesn't hurt.
|
|
||||||
libc_unwind_check="${CC-cc} $CFLAGS -DCHECK__register_frame_info \
|
libc_unwind_check="${CC-cc} $CFLAGS -DCHECK__register_frame_info \
|
||||||
-nostdlib -nostartfiles -o conftest conftest.c \
|
-nostdlib -nostartfiles -o conftest conftest.c \
|
||||||
-lgcc -lgcc_eh -lgcc"
|
-lgcc"
|
||||||
if AC_TRY_COMMAND([$libc_unwind_check >&AS_MESSAGE_LOG_FD]); then
|
# Some platforms' specs put -lgcc first. The second one doesn't hurt.
|
||||||
|
if AC_TRY_COMMAND([$libc_unwind_check >&AS_MESSAGE_LOG_FD]) ||
|
||||||
|
AC_TRY_COMMAND([$libc_unwind_check -lgcc_eh -lgcc >&AS_MESSAGE_LOG_FD])
|
||||||
|
then
|
||||||
if $libc_unwind_check -v 2>&1 >/dev/null \
|
if $libc_unwind_check -v 2>&1 >/dev/null \
|
||||||
| grep -q -- --eh-frame-hdr; then
|
| grep -q -- --eh-frame-hdr; then
|
||||||
libc_cv_gcc_dwarf2_unwind_info=no_registry_needed
|
libc_cv_gcc_dwarf2_unwind_info=no_registry_needed
|
||||||
|
Loading…
Reference in New Issue
Block a user