summaryrefslogtreecommitdiff
path: root/configure.host
diff options
context:
space:
mode:
authorNiclas Zeising <zeising+github@daemonic.se>2020-08-07 21:05:23 +0200
committerGitHub <noreply@github.com>2020-08-07 15:05:23 -0400
commit8276f812a99b10d1f2c387dbd6ef2ca4f597c733 (patch)
tree9a70f46d8bbbe39e6a32d80542b4fe9c2f28f68f /configure.host
parent392afbaf60663e530bd740da0b5a39ee9f4ba052 (diff)
downloadlibffi-8276f812a99b10d1f2c387dbd6ef2ca4f597c733.tar.gz
Upstream local FreeBSD patches (#567)
* Add support for FreeBSD mips Add support for FreeBSD mips, this has been a local patch in the FreeBSD ports tree for quite some time. Originally submitted by sson, and committed by sbruno AT FreeBSD DOT org See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191909 for background details. Signed-off-by: Niclas Zeising <zeising@daemonic.se> * Add support for FreeBSD powerpcspe Add support for powerpcspe on FreeBSD This has been in the FreeBSD ports tree for some time. Originally submitted by jhibbits AT FreeBSD DOT org. Signed-off-by: Niclas Zeising <zeising@daemonic.se> * Fix abort() on FreeBSD arm related to __clear_cache() This patch has been in the FreeBSD ports tree for a number of years. Original commit by koobs AT FreeBSD DOT org Original commit message: > devel/libffi: Fix abort() on ARM related to __clear_cache() > > The current FreeBSD/ARM __clear_cache() implementation does nothing #if > __i386__ || __x86_64__ #else abort(); > > cognet@ advises this is an issue for anything !Apple that is using the > libcompiler_rt provided by Clang on ARM, and requires upstreaming. See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=149167 for some background details. Signed-off-by: Niclas Zeising <zeising@daemonic.se>
Diffstat (limited to 'configure.host')
-rw-r--r--configure.host6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.host b/configure.host
index 398c3b5..c7d63fd 100644
--- a/configure.host
+++ b/configure.host
@@ -179,7 +179,7 @@ case "${host}" in
mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
TARGET=MIPS; TARGETDIR=mips
;;
- mips*-*linux* | mips*-*-openbsd*)
+ mips*-*linux* | mips*-*-openbsd* | mips*-*-freebsd*)
# Support 128-bit long double for NewABI.
HAVE_LONG_DOUBLE='defined(__mips64)'
TARGET=MIPS; TARGETDIR=mips
@@ -218,6 +218,10 @@ case "${host}" in
TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
HAVE_LONG_DOUBLE_VARIANT=1
;;
+ powerpcspe-*-freebsd*)
+ TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
+ CFLAGS="$CFLAGS -D__NO_FPRS__"
+ ;;
powerpc64-*-freebsd*)
TARGET=POWERPC; TARGETDIR=powerpc
;;