math/amath: fix build on powerpc* and mips*
The big-endian ifdef misses ||. PR: 239298 Approved by: cs@innolan.net (maintainer timeout), linimon (mentor)
This commit is contained in:
parent
bd2ffebe9e
commit
8966b85498
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=509722
@ -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
|
||||
|
11
math/amath/files/patch-src_real_prim.h
Normal file
11
math/amath/files/patch-src_real_prim.h
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user