mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 05:47:26 +08:00
gdb/
* configure.ac: Always set RDYNAMIC at least as `-rdynamic'. * configure: Regenerate.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
|
||||
* configure: Regenerate.
|
||||
|
||||
2010-06-22 Hui Zhu <teawater@gmail.com>
|
||||
|
||||
* i386-tdep.c (i386_record_lea_modrm): Change warning to query.
|
||||
|
40
gdb/configure
vendored
40
gdb/configure
vendored
@ -14186,18 +14186,17 @@ $as_echo "$gdb_cv_bigtoc" >&6; }
|
||||
;;
|
||||
esac
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
|
||||
$as_echo_n "checking for the dynamic export flag... " >&6; }
|
||||
dynamic_list=false
|
||||
if test "${gdb_native}" = yes; then
|
||||
if test "$GCC" = "yes" ; then
|
||||
# The dynamically loaded libthread_db needs access to symbols in the gdb
|
||||
# executable. Older GNU ld supports --export-dynamic but --dynamic-list
|
||||
# may not be supported there.
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
|
||||
$as_echo_n "checking for the dynamic export flag... " >&6; }
|
||||
old_LDFLAGS="$LDFLAGS"
|
||||
# Older GNU ld supports --export-dynamic but --dynamic-list it does not.
|
||||
RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
|
||||
LDFLAGS="$LDFLAGS $RDYNAMIC"
|
||||
dynamic_list=false
|
||||
if test "${have_libpython}" = no; then
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
@ -14249,39 +14248,18 @@ fi
|
||||
|
||||
CFLAGS="$old_CFLAGS"
|
||||
fi
|
||||
if $dynamic_list;then
|
||||
LDFLAGS="$old_LDFLAGS"
|
||||
fi
|
||||
if $dynamic_list; then
|
||||
found="-Wl,--dynamic-list"
|
||||
RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
|
||||
else
|
||||
RDYNAMIC="-rdynamic"
|
||||
LDFLAGS="$old_LDFLAGS $RDYNAMIC"
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
found="-rdynamic"
|
||||
else
|
||||
found="no"
|
||||
# Error on its usage by .mh file.
|
||||
RDYNAMIC="no-rdynamic-available"
|
||||
found="-rdynamic"
|
||||
RDYNAMIC="-rdynamic"
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
fi
|
||||
|
||||
LDFLAGS="$old_LDFLAGS"
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
|
||||
$as_echo "$found" >&6; }
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if test ${build} = ${host} -a ${host} = ${target} ; then
|
||||
|
@ -1453,17 +1453,16 @@ aix*)
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_MSG_CHECKING(for the dynamic export flag)
|
||||
dynamic_list=false
|
||||
if test "${gdb_native}" = yes; then
|
||||
if test "$GCC" = "yes" ; then
|
||||
# The dynamically loaded libthread_db needs access to symbols in the gdb
|
||||
# executable. Older GNU ld supports --export-dynamic but --dynamic-list
|
||||
# may not be supported there.
|
||||
AC_MSG_CHECKING(for the dynamic export flag)
|
||||
old_LDFLAGS="$LDFLAGS"
|
||||
# Older GNU ld supports --export-dynamic but --dynamic-list it does not.
|
||||
RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
|
||||
LDFLAGS="$LDFLAGS $RDYNAMIC"
|
||||
dynamic_list=false
|
||||
if test "${have_libpython}" = no; then
|
||||
AC_TRY_LINK([], [], [dynamic_list=true])
|
||||
else
|
||||
@ -1484,23 +1483,17 @@ if test "${gdb_native}" = yes; then
|
||||
[dynamic_list=true], [], [true])
|
||||
CFLAGS="$old_CFLAGS"
|
||||
fi
|
||||
if $dynamic_list;then
|
||||
LDFLAGS="$old_LDFLAGS"
|
||||
fi
|
||||
if $dynamic_list; then
|
||||
found="-Wl,--dynamic-list"
|
||||
RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
|
||||
else
|
||||
else
|
||||
found="-rdynamic"
|
||||
RDYNAMIC="-rdynamic"
|
||||
LDFLAGS="$old_LDFLAGS $RDYNAMIC"
|
||||
AC_TRY_LINK([], [],
|
||||
[found="-rdynamic"],
|
||||
[found="no"
|
||||
# Error on its usage by .mh file.
|
||||
RDYNAMIC="no-rdynamic-available"])
|
||||
fi
|
||||
AC_SUBST(RDYNAMIC)
|
||||
LDFLAGS="$old_LDFLAGS"
|
||||
AC_MSG_RESULT($found)
|
||||
fi
|
||||
fi
|
||||
AC_SUBST(RDYNAMIC)
|
||||
AC_MSG_RESULT($found)
|
||||
|
||||
dnl For certain native configurations, we need to check whether thread
|
||||
dnl support can be built in or not.
|
||||
|
Reference in New Issue
Block a user