diff options
author | 2019-10-02 20:37:36 (GMT) | |
---|---|---|
committer | 2019-10-02 20:37:36 (GMT) | |
commit | 3f461da11f1f8e9dcfdffef24e1982b5ffd10305 (patch) | |
tree | bb0250d3b51e78260c087fb23e45d11a7babd47a /packages/gdb/8.3.1/0001-uclibc-no-gettimeofday-clobber.patch | |
parent | 3c0ac9fbfdd2262e46fff0bc5556eed6fedd6e26 (diff) | |
parent | 8a7f46f151cd689c1564f4649108eb75439b8003 (diff) |
Merge pull request #1253 from stilor/updates
Updates
Diffstat (limited to 'packages/gdb/8.3.1/0001-uclibc-no-gettimeofday-clobber.patch')
-rw-r--r-- | packages/gdb/8.3.1/0001-uclibc-no-gettimeofday-clobber.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/packages/gdb/8.3.1/0001-uclibc-no-gettimeofday-clobber.patch b/packages/gdb/8.3.1/0001-uclibc-no-gettimeofday-clobber.patch new file mode 100644 index 0000000..9aade1e --- /dev/null +++ b/packages/gdb/8.3.1/0001-uclibc-no-gettimeofday-clobber.patch @@ -0,0 +1,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 +@@ -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 |