summaryrefslogtreecommitdiff
path: root/math/flexfloat
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2020-06-20 04:01:22 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2020-06-20 04:01:22 +0000
commit62304a690ea6f00550b2b381af2666b6817abd21 (patch)
tree1482459b08000770501e2f2bf8ef455860fb3577 /math/flexfloat
parentFix conditional. "defined(${MLSIZE})" is only true if MLSIZE's value (diff)
math/flexfloat: fix build on powerpc, powerpc64
This port won't build with base GCC, use GCC from ports. Also add -mfloat128, which requires -mvsx. This will mean the binary will need to be used on POWER7 or newer, because -mfloat128 uses VSX.
Notes
Notes: svn path=/head/; revision=539693
Diffstat (limited to 'math/flexfloat')
-rw-r--r--math/flexfloat/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/math/flexfloat/Makefile b/math/flexfloat/Makefile
index 98ed2e6cae14..bccb15810dc1 100644
--- a/math/flexfloat/Makefile
+++ b/math/flexfloat/Makefile
@@ -15,8 +15,10 @@ USE_GITHUB= yes
GH_ACCOUNT= oprecomp
GH_TAGNAME= 6db869087a12d763a94d53e9b0a9d52def270865
USE_LDCONFIG= yes
-USE_GCC= any # clang doesn't support __float128
+USE_GCC= yes # clang doesn't support __float128
+CFLAGS_powerpc64= -mfloat128 -mvsx
+CFLAGS_powerpc= -mfloat128 -mvsx
CMAKE_OFF= BUILD_TESTS BUILD_EXAMPLES
PLIST_FILES= include/flexfloat/flexfloat.h \