aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorpkubaj <pkubaj@FreeBSD.org>2019-10-30 10:08:39 +0800
committerpkubaj <pkubaj@FreeBSD.org>2019-10-30 10:08:39 +0800
commit961950565f015b7377275ba697e145961b7256fa (patch)
tree382cadba3917697b64d912396666009fdef6de85 /math
parentcdaa98b7a813adf34b23f7a198926978f27f2693 (diff)
downloadfreebsd-ports-gnome-961950565f015b7377275ba697e145961b7256fa.tar.gz
freebsd-ports-gnome-961950565f015b7377275ba697e145961b7256fa.tar.zst
freebsd-ports-gnome-961950565f015b7377275ba697e145961b7256fa.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)
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
+