crosstool-ng/packages/gdb/9.2/0001-uclibc-no-gettimeofday-clobber.patch
Kumar Gala e48b156664 gdb 9.2 support
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2020-09-11 16:44:20 -05: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>
---
gnulib/configure | 1 +
gnulib/import/m4/gettimeofday.m4 | 1 +
2 files changed, 2 insertions(+)
--- a/gnulib/configure
+++ b/gnulib/configure
@@ -20267,6 +20267,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/gnulib/import/m4/gettimeofday.m4
+++ b/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