aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorpkubaj <pkubaj@FreeBSD.org>2019-12-03 02:00:07 +0800
committerpkubaj <pkubaj@FreeBSD.org>2019-12-03 02:00:07 +0800
commit66ccb6dfc3acc1988433a1450d832ec1cd967838 (patch)
tree3ca1057e8f55826bf880ab7108703a5e99a020c8 /math
parent2647a08196ca77c51a36165eb88fbd70d154e56c (diff)
downloadfreebsd-ports-gnome-66ccb6dfc3acc1988433a1450d832ec1cd967838.tar.gz
freebsd-ports-gnome-66ccb6dfc3acc1988433a1450d832ec1cd967838.tar.zst
freebsd-ports-gnome-66ccb6dfc3acc1988433a1450d832ec1cd967838.zip
math/sleef: fix build on powerpc64 elfv2
clang doesn't find vec_nand: In file included from /wrkdirs/usr/ports/math/sleef/work/sleef-3.4.0/src/libm/sleefsimdsp.c:145: /wrkdirs/usr/ports/math/sleef/work/sleef-3.4.0/src/arch/helperpower_128.h:266:54: warning: implicit declaration of function 'vec_nand' is invalid in C99 [-Wimplicit-function-declaration] static INLINE vopmask vnot_vo_vo(vopmask o) { return vec_nand(o, o); } ^ /wrkdirs/usr/ports/math/sleef/work/sleef-3.4.0/src/arch/helperpower_128.h:266:54: error: returning 'int' from a function with incompatible result type 'vopmask' (vector of 4 'unsigned int' values) static INLINE vopmask vnot_vo_vo(vopmask o) { return vec_nand(o, o); } ^~~~~~~~~~~~~~ -mpower8-vector is needed because vec_nand is behind #ifdef __POWER8_VECTOR__ in clang's altivec.h. PR: 242143 Approved by: linimon (mentor), jmd (maintainer)
Diffstat (limited to 'math')
-rw-r--r--math/sleef/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/math/sleef/Makefile b/math/sleef/Makefile
index 62527329b5b6..ed6201fd76bb 100644
--- a/math/sleef/Makefile
+++ b/math/sleef/Makefile
@@ -18,6 +18,8 @@ USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= shibatch
+CFLAGS_powerpc64= -mpower8-vector
+
.include <bsd.port.options.mk>
.if ${ARCH} == powerpc64