svn commit: r509722 - in head/math/amath: . files

Piotr Kubaj pkubaj at FreeBSD.org
Sat Aug 24 12:42:03 UTC 2019


Author: pkubaj
Date: Sat Aug 24 12:42:02 2019
New Revision: 509722
URL: https://svnweb.freebsd.org/changeset/ports/509722

Log:
  math/amath: fix build on powerpc* and mips*
  
  The big-endian ifdef misses ||.
  
  PR:		239298
  Approved by:	cs at innolan.net (maintainer timeout), linimon (mentor)

Added:
  head/math/amath/files/patch-src_real_prim.h   (contents, props changed)
Modified:
  head/math/amath/Makefile

Modified: head/math/amath/Makefile
==============================================================================
--- head/math/amath/Makefile	Sat Aug 24 12:40:26 2019	(r509721)
+++ head/math/amath/Makefile	Sat Aug 24 12:42:02 2019	(r509722)
@@ -13,9 +13,6 @@ COMMENT=	Simple command line calculator
 LICENSE=	BSD2CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-NOT_FOR_ARCHS=		powerpc powerpc64 powerpcspe
-NOT_FOR_ARCHS_REASON=	Must define endianness
-
 USES=		gmake
 USE_LDCONFIG=	${PREFIX}/lib/${PORTNAME}
 HAS_CONFIGURE=	yes

Added: head/math/amath/files/patch-src_real_prim.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/amath/files/patch-src_real_prim.h	Sat Aug 24 12:42:02 2019	(r509722)
@@ -0,0 +1,11 @@
+--- src/real/prim.h.orig	2019-07-18 20:14:48 UTC
++++ src/real/prim.h
+@@ -106,7 +106,7 @@ int __kernel_rem_pio2(double* x, double* y, int e0, in
+ /* Detect other BE CPUs */
+ #if !defined(__IEEE_LITTLE_ENDIAN) && !defined(__IEEE_BIG_ENDIAN)
+ #if defined(PPCCPU)      || defined(__PPC__) || \
+-    defined(__powerpc__) || defined(__powerpc64__) \
++    defined(__powerpc__) || defined(__powerpc64__) || \
+     defined(__mips__) || defined(__mips)
+ #define __IEEE_BIG_ENDIAN
+ #endif


More information about the svn-ports-all mailing list