termux-packages/packages/gauche/gc-os_dep.c.patch

12 lines
597 B
Diff

--- a/gc/os_dep.c
+++ b/gc/os_dep.c
@@ -4737,7 +4737,7 @@
/* There are faster ways to do this, but hopefully this */
/* isn't time critical. */
(void)snprintf(cmd_buf, sizeof(cmd_buf),
- "/usr/bin/addr2line -f -e %s 0x%lx",
+ "@TERMUX_PREFIX@/bin/addr2line -f -e %s 0x%lx",
exe_name, (unsigned long)info[i].ci_pc);
cmd_buf[sizeof(cmd_buf) - 1] = '\0';
old_preload = GETENV("LD_PRELOAD");