aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2019-10-30 02:08:39 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2019-10-30 02:08:39 +0000
commit5e2439a095e8d57cf9e8855bc2ce3189bca3024e (patch)
tree382cadba3917697b64d912396666009fdef6de85 /math
parent5f1117163751634fa7f0538dd6e6e404578f3eec (diff)
downloadports-5e2439a095e8d57cf9e8855bc2ce3189bca3024e.tar.gz
ports-5e2439a095e8d57cf9e8855bc2ce3189bca3024e.zip
math/openturns: fix build on BE architectures
This port fails to build on big-endian architectures, because it redefines __BIG_ENDIAN__. Our compilers already define __BIG_ENDIAN__ and redefining it breaks compilation. PR: 241546 Approved by: linimon (mentor), yuri (maintainer)
Notes
Notes: svn path=/head/; revision=516043
Diffstat (limited to 'math')
-rw-r--r--math/openturns/files/patch-lib_include_OTconfig.h.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/math/openturns/files/patch-lib_include_OTconfig.h.in b/math/openturns/files/patch-lib_include_OTconfig.h.in
new file mode 100644
index 000000000000..9383d97c4364
--- /dev/null
+++ b/math/openturns/files/patch-lib_include_OTconfig.h.in
@@ -0,0 +1,12 @@
+--- lib/include/OTconfig.h.in.orig 2019-10-28 13:43:02 UTC
++++ lib/include/OTconfig.h.in
+@@ -165,9 +165,6 @@
+ /* Define to `unsigned int' if <sys/types.h> does not define. */
+ #cmakedefine size_t
+
+-/* Define to 1 if big endian system */
+-#cmakedefine __BIG_ENDIAN__
+-
+ /* Define to 1 if UnsignedInteger and uint64_t are the same type */
+ #cmakedefine OPENTURNS_UNSIGNEDLONG_SAME_AS_UINT64
+