From d2e0eee8c6c85658a2bea6bc2c8336fca6e8984c Mon Sep 17 00:00:00 2001 From: Stas Sergeev Date: Fri, 13 Dec 2024 17:48:11 +0300 Subject: [PATCH] disable elfexec when statically linked This currently is not supported by dj64dev. --- src/command.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command.c b/src/command.c index e582ec7..bf23772 100644 --- a/src/command.c +++ b/src/command.c @@ -2684,7 +2684,7 @@ static void perform_echo(const char *arg) static void perform_elfexec(const char *arg) { -#ifdef DJ64 +#if defined(DJ64) && !defined(STATIC_LINK) int rc; #endif if (!arg || !arg[0]) @@ -2693,7 +2693,7 @@ static void perform_elfexec(const char *arg) reset_batfile_call_stack(); return; } -#ifdef DJ64 +#if defined(DJ64) && !defined(STATIC_LINK) rc = elfexec(arg, 0, NULL); if (rc == -1) printf("elfexec failed\n");