Fix ELF interpreter of i386 musl target

mob
Theodore Dubois 2018-12-22 04:26:27 +00:00
parent 63f69c2bdd
commit 82abfd75f3
1 changed files with 5 additions and 1 deletions

6
tcc.h
View File

@ -254,7 +254,11 @@ extern long double strtold (const char *__nptr, char **__endptr);
# endif
# elif !defined(TCC_ARM_EABI)
# if defined(TCC_MUSL)
# define CONFIG_TCC_ELFINTERP "/lib/ld-musl-arm.so.1"
# if defined(TCC_TARGET_I386)
# define CONFIG_TCC_ELFINTERP "/lib/ld-musl-i386.so.1"
# else
# define CONFIG_TCC_ELFINTERP "/lib/ld-musl-arm.so.1"
# endif
# else
# define CONFIG_TCC_ELFINTERP "/lib/ld-linux.so.2"
# endif