diff options
author | Alexey Brodkin <abrodkin@synopsys.com> | 2021-09-10 17:08:47 (GMT) |
---|---|---|
committer | Alexey Brodkin <abrodkin@synopsys.com> | 2021-09-14 11:29:36 (GMT) |
commit | d6eeff01a65439bdf74ac261124caec27e75d17a (patch) | |
tree | 013347639e2462d3e43636e02ccbf9f92fbcfe99 /packages/gdb/10.2/0000-uclibc-no-gettimeofday-clobber.patch | |
parent | 3b97480638286acceb2ea9877ed4a4e3204fbd18 (diff) |
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>
Diffstat (limited to 'packages/gdb/10.2/0000-uclibc-no-gettimeofday-clobber.patch')
-rw-r--r-- | packages/gdb/10.2/0000-uclibc-no-gettimeofday-clobber.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/packages/gdb/10.2/0000-uclibc-no-gettimeofday-clobber.patch b/packages/gdb/10.2/0000-uclibc-no-gettimeofday-clobber.patch new file mode 100644 index 0000000..11cf2fb --- /dev/null +++ b/packages/gdb/10.2/0000-uclibc-no-gettimeofday-clobber.patch @@ -0,0 +1,35 @@ +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. |