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"
TERMUX_PKG_VERSION=7.9.1
+TERMUX_PKG_BUILD_REVISION=1
TERMUX_PKG_SRCURL=http://ftp.gnu.org/gnu/gdb/gdb-${TERMUX_PKG_VERSION}.tar.xz
# gdb can not build with our normal --disable-static: https://sourceware.org/bugzilla/show_bug.cgi?id=15916
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-system-readline --with-curses --enable-static ac_cv_func_getpwent=no ac_cv_func_getpwnam=no"
if ((user_shell = (char *) getenv ("SHELL")) == NULL)
- user_shell = "/bin/sh";
-+ user_shell = "/system/bin/sh";
++ user_shell = "@TERMUX_PREFIX@/bin/sh";
/* Get the name of the shell for arg0. */
p = lbasename (user_shell);
/* This just gets used as a default if we can't find SHELL. */
-#define SHELL_FILE "/bin/sh"
-+#define SHELL_FILE "/system/bin/sh"
++#define SHELL_FILE "@TERMUX_PREFIX@/bin/sh"
extern char **environ;