gdb: fix path in TMP_PREFIX

This commit is contained in:
Leonid Pliushch 2017-09-14 13:27:14 +03:00 committed by Fredrik Fornwall
parent d50e56eb98
commit 0cfc6c9f22
2 changed files with 13 additions and 0 deletions

View File

@ -2,6 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/gdb/
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

View File

@ -0,0 +1,12 @@
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. */