Skip to content

Commit

Permalink
disable elfexec when statically linked
Browse files Browse the repository at this point in the history
This currently is not supported by dj64dev.
  • Loading branch information
stsp committed Dec 13, 2024
1 parent 8d14a2e commit d2e0eee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand All @@ -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");
Expand Down

0 comments on commit d2e0eee

Please sign in to comment.