crosstool-ng/patches/gdb/7.11.1/101-uclibc-no-gettimeofday-clobber.patch
Alexey Neyman dd4cf6dde0 Upgrade GDB 7.11 -> 7.11.1
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-19 09:37:01 -08:00

21 lines
909 B
Diff

Improve gnulib in gdb's guess work, gettimeofday() works in uClibcm promise.
This patch helps building x86_64-unknown-linux-uclibc toolchains, the final
gdb-native step otherwise fails when linking the libinproctrace.so
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
--- a/gdb/gnulib/configure 2016-02-25 18:17:04.145903807 +0100
+++ b/gdb/gnulib/configure 2016-02-25 18:17:28.545903821 +0100
@@ -13520,8 +13520,9 @@
if test "$cross_compiling" = yes; then :
# When cross-compiling:
case "$host_os" in
- # Guess all is fine on glibc systems.
+ # Guess all is fine on glibc/uclibc systems.
*-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
+ *-uclibc*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
# If we don't know, assume the worst.
*) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
esac