git: 3a472458301e - main - math/asl: fix build on powerpc*
Piotr Kubaj
pkubaj at FreeBSD.org
Thu May 6 00:39:43 UTC 2021
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=3a472458301efae6090c769816116c26cd9db4db
commit 3a472458301efae6090c769816116c26cd9db4db
Author: Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-05-06 00:39:40 +0000
Commit: Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-05-06 00:39:40 +0000
math/asl: fix build on powerpc*
Don't use fpsetprec / fpsetmask on powerpc*:
fpinit.c:246:2: warning: implicit declaration of function 'fpsetprec' is invalid in C99 [-Wimplicit-function-declaration]
fpsetprec(FP_PD);
^
fpinit.c:246:12: error: use of undeclared identifier 'FP_PD'
fpsetprec(FP_PD);
---
math/asl/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/math/asl/Makefile b/math/asl/Makefile
index 21fc5597d253..4e1a8f69af9d 100644
--- a/math/asl/Makefile
+++ b/math/asl/Makefile
@@ -22,6 +22,12 @@ GNU_CONFIGURE= yes
BINARY_ALIAS= make=${GMAKE}
+.include <bsd.port.options.mk>
+
+.if ${ARCH:Mpowerpc*}
+CFLAGS+= -DASL_NO_FP_INIT
+.endif
+
post-extract:
@cd ${WRKSRC} && ${LN} -s ../solvers .
More information about the dev-commits-ports-all
mailing list