TERMUX_PKG_DESCRIPTION="The standard GNU Debugger that runs on many Unix-like systems and works for many programming languages"
TERMUX_PKG_DEPENDS="liblzma, libexpat, readline, ncurses"
TERMUX_PKG_VERSION=8.0.1
+TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/gdb/gdb-${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=3dbd5f93e36ba2815ad0efab030dcd0c7b211d7b353a40a53f4c02d7d56295e3
# gdb can not build with our normal --disable-static: https://sourceware.org/bugzilla/show_bug.cgi?id=15916
--- /dev/null
+diff -uNr gdb-8.0.1/gdb/compile/compile.c gdb-8.0.1.mod/gdb/compile/compile.c
+--- gdb-8.0.1/gdb/compile/compile.c 2017-09-07 17:28:11.000000000 +0300
++++ gdb-8.0.1.mod/gdb/compile/compile.c 2017-09-14 13:21:59.592863458 +0300
+@@ -44,7 +44,7 @@
+
+ /* Initial filename for temporary files. */
+
+-#define TMP_PREFIX "/tmp/gdbobj-"
++#define TMP_PREFIX "@TERMUX_PREFIX@/tmp/gdbobj-"
+
+ /* Hold "compile" commands. */
+