Date: Thu, 6 May 2021 00:39:43 GMT From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 3a472458301e - main - math/asl: fix build on powerpc* Message-ID: <202105060039.1460dhWp020343@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=3a472458301efae6090c769816116c26cd9db4db commit 3a472458301efae6090c769816116c26cd9db4db Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2021-05-06 00:39:40 +0000 Commit: Piotr Kubaj <pkubaj@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 .
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105060039.1460dhWp020343>