Skip to content

Commit

Permalink
Revert "disable elfexec when statically linked"
Browse files Browse the repository at this point in the history
This reverts commit d2e0eee.

Added the checks to dj64dev instead.
  • Loading branch information
stsp committed Dec 14, 2024
1 parent d2e0eee commit 9f8fdca
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)
{
#if defined(DJ64) && !defined(STATIC_LINK)
#ifdef DJ64
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;
}
#if defined(DJ64) && !defined(STATIC_LINK)
#ifdef DJ64
rc = elfexec(arg, 0, NULL);
if (rc == -1)
printf("elfexec failed\n");
Expand Down

0 comments on commit 9f8fdca

Please sign in to comment.