Skip to content

Commit d2e0eee

Browse files
committed
disable elfexec when statically linked
This currently is not supported by dj64dev.
1 parent 8d14a2e commit d2e0eee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/command.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2684,7 +2684,7 @@ static void perform_echo(const char *arg)
26842684

26852685
static void perform_elfexec(const char *arg)
26862686
{
2687-
#ifdef DJ64
2687+
#if defined(DJ64) && !defined(STATIC_LINK)
26882688
int rc;
26892689
#endif
26902690
if (!arg || !arg[0])
@@ -2693,7 +2693,7 @@ static void perform_elfexec(const char *arg)
26932693
reset_batfile_call_stack();
26942694
return;
26952695
}
2696-
#ifdef DJ64
2696+
#if defined(DJ64) && !defined(STATIC_LINK)
26972697
rc = elfexec(arg, 0, NULL);
26982698
if (rc == -1)
26992699
printf("elfexec failed\n");

0 commit comments

Comments
 (0)