Add support for KfreeBSD 64bits

master
Thomas Preud'homme 2013-02-18 11:41:34 +01:00
parent 322743eef8
commit e946c3583f
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Version 0.9.27:
Platforms:
- Support Debian GNU/kfreeBSD 64bit userspace (Thomas Preud'homme)
version 0.9.26:
User interface:

6
tcc.h
View File

@ -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