crosstool-ng/packages/gdb/10.2/0000-uclibc-no-gettimeofday-clobber.patch
Alexey Brodkin d6eeff01a6 gdb10: Update existing patches
As easy as: ./maintainer/manage-packages.sh --update-patches --select gdb-10.2

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2021-09-14 04:29:36 -07:00

36 lines
1.5 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 | 2 ++
gnulib/import/m4/gettimeofday.m4 | 2 ++
2 files changed, 4 insertions(+)
--- a/gnulib/configure
+++ b/gnulib/configure
@@ -20745,6 +20745,8 @@
case "$host_os" in
# Guess all is fine on glibc systems.
*-gnu* | gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
+ # Guess all is fine on uclibc systems.
+ *-uclibc*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
# Guess all is fine on musl systems.
*-musl*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
# Guess no on native Windows.
--- a/gnulib/import/m4/gettimeofday.m4
+++ b/gnulib/import/m4/gettimeofday.m4
@@ -105,6 +105,8 @@
case "$host_os" in
# Guess all is fine on glibc systems.
*-gnu* | gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
+ # Guess all is fine on uclibc systems.
+ *-uclibc*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
# Guess all is fine on musl systems.
*-musl*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
# Guess no on native Windows.