diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-07-11 05:59:20 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-12 07:17:46 +0000 |
commit | 376454e172c208d16c5d188802301102090e6b85 (patch) | |
tree | 6051127dacfcfcb46cf8b07e02c073dea47df617 /main/gdb/gdb-linux_threaddb.patch | |
parent | 5e3f5ab9a2ea79b93da052a274d8b709410b8381 (diff) | |
download | aports-376454e172c208d16c5d188802301102090e6b85.tar.bz2 aports-376454e172c208d16c5d188802301102090e6b85.tar.xz |
main/gdb: support crosscompiling and musl
Diffstat (limited to 'main/gdb/gdb-linux_threaddb.patch')
-rw-r--r-- | main/gdb/gdb-linux_threaddb.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/main/gdb/gdb-linux_threaddb.patch b/main/gdb/gdb-linux_threaddb.patch new file mode 100644 index 0000000000..4148a1a263 --- /dev/null +++ b/main/gdb/gdb-linux_threaddb.patch @@ -0,0 +1,28 @@ +diff -u -r -N gdb-7.3.1-org//gdb/linux-thread-db.c gdb-7.3.1-patched//gdb/linux-thread-db.c +--- gdb-7.3.1-org//gdb/linux-thread-db.c 1970-01-01 00:00:00.000000000 +0000 ++++ gdb-7.3.1-patched//gdb/linux-thread-db.c 2011-09-22 22:17:38.648841814 +0000 +@@ -47,6 +47,8 @@ + #include <gnu/libc-version.h> + #endif + ++#include "threadpathhack.h" ++ + /* GNU/Linux libthread_db support. + + libthread_db is a library, provided along with libpthread.so, which +diff -u -r -N gdb-7.3.1-org//gdb/threadpathhack.h gdb-7.3.1-patched//gdb/threadpathhack.h +--- gdb-7.3.1-org//gdb/threadpathhack.h 1970-01-01 00:00:00.000000000 +0000 ++++ gdb-7.3.1-patched//gdb/threadpathhack.h 2011-09-22 22:17:38.648841814 +0000 +@@ -0,0 +1,12 @@ ++#ifndef HACK_PATH_SO ++#define HACK_PATH_SO ++ ++#ifndef LIBTHREAD_DB_SO ++#define LIBTHREAD_DB_SO "bug.so" ++#endif ++#ifndef LIBTHREAD_DB_SEARCH_PATH ++#define LIBTHREAD_DB_SEARCH_PATH "/lib" ++#endif ++ ++#endif ++ |