crosstool-ng/packages/gdb/8.3.1/0001-uclibc-no-gettimeofday-clobber.patch
Alexey Neyman 07594d1e8b Add GDB 8.3.1
Signed-off-by: Alexey Neyman <stilor@att.net>
2019-10-01 21:22:22 -07:00

34 lines
1.3 KiB
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>
Signed-off-by: Alexey Neyman <stilor@att.net>
---
gdb/gnulib/configure | 1 +
gdb/gnulib/import/m4/gettimeofday.m4 | 1 +
2 files changed, 2 insertions(+)
--- a/gdb/gnulib/configure
+++ b/gdb/gnulib/configure
@@ -18579,6 +18579,7 @@
case "$host_os" in
# Guess all is fine on glibc 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
--- a/gdb/gnulib/import/m4/gettimeofday.m4
+++ b/gdb/gnulib/import/m4/gettimeofday.m4
@@ -111,6 +111,7 @@
case "$host_os" in
# Guess all is fine on glibc 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