From e946c3583f7021dc3e71e169542fad9ba4bc7bac Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Mon, 18 Feb 2013 11:41:34 +0100 Subject: Add support for KfreeBSD 64bits --- tcc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index 822e998..74ba130 100644 --- a/tcc.h +++ b/tcc.h @@ -205,7 +205,11 @@ # if defined __FreeBSD__ # define CONFIG_TCC_ELFINTERP "/libexec/ld-elf.so.1" # elif defined __FreeBSD_kernel__ -# define CONFIG_TCC_ELFINTERP "/lib/ld.so.1" +# if defined(TCC_TARGET_X86_64) +# define CONFIG_TCC_ELFINTERP "/lib/ld-kfreebsd-x86-64.so.1" +# else +# define CONFIG_TCC_ELFINTERP "/lib/ld.so.1" +# endif # elif defined TCC_ARM_HARDFLOAT # define CONFIG_TCC_ELFINTERP "/lib/ld-linux-armhf.so.3" # elif defined TCC_ARM_EABI -- cgit v1.3.1