diff --git a/tcc.h b/tcc.h index 72c8c496..0a85e8e5 100644 --- a/tcc.h +++ b/tcc.h @@ -287,6 +287,8 @@ extern long double strtold (const char *__nptr, char **__endptr); # define CONFIG_TCC_ELFINTERP "/usr/libexec/ld-elf.so.2" # elif TARGETOS_NetBSD # define CONFIG_TCC_ELFINTERP "/usr/libexec/ld.elf_so" +# elif TARGETOS_OpenBSD +# define CONFIG_TCC_ELFINTERP "/usr/libexec/ld.so" # elif defined __GNU__ # define CONFIG_TCC_ELFINTERP "/lib/ld.so" # elif defined(TCC_TARGET_PE) @@ -303,11 +305,7 @@ extern long double strtold (const char *__nptr, char **__endptr); # if defined(TCC_MUSL) # define CONFIG_TCC_ELFINTERP "/lib/ld-musl-x86_64.so.1" # else -# if TARGETOS_OpenBSD -# define CONFIG_TCC_ELFINTERP "/usr/libexec/ld.so" -# else -# define CONFIG_TCC_ELFINTERP "/lib64/ld-linux-x86-64.so.2" -# endif +# define CONFIG_TCC_ELFINTERP "/lib64/ld-linux-x86-64.so.2" # endif # elif defined(TCC_TARGET_RISCV64) # define CONFIG_TCC_ELFINTERP "/lib/ld-linux-riscv64-lp64d.so.1"