summaryrefslogtreecommitdiff
path: root/packages/gdb/8.2.1/0001-uclibc-no-gettimeofday-clobber.patch
blob: 3bb6c2000d7e6b79c7885eae3d900aff7a74a695 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
@@ -17214,6 +17214,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