aboutsummaryrefslogtreecommitdiffstats
path: root/xcomp/erl-xcomp.conf.template
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2013-10-28 18:26:40 +0100
committerLukas Larsson <[email protected]>2013-11-01 10:39:29 +0100
commit70ebf76f1cef4a6de6be3ea96b36fb81fe245921 (patch)
treecd8ae5d1663cdd40acec0a05cf4ad1d08f05351c /xcomp/erl-xcomp.conf.template
parent207a13a549052e014a82362032995e347ffb68ff (diff)
downloadotp-70ebf76f1cef4a6de6be3ea96b36fb81fe245921.tar.gz
otp-70ebf76f1cef4a6de6be3ea96b36fb81fe245921.tar.bz2
otp-70ebf76f1cef4a6de6be3ea96b36fb81fe245921.zip
erts: Add max alignment posix_memalign configure check
On some OSs posix_memalign exists, but it does not allow for alignment greater than the current page size. So we have to do a runtime check for alignment size and also add cross compile options.
Diffstat (limited to 'xcomp/erl-xcomp.conf.template')
-rw-r--r--xcomp/erl-xcomp.conf.template6
1 files changed, 6 insertions, 0 deletions
diff --git a/xcomp/erl-xcomp.conf.template b/xcomp/erl-xcomp.conf.template
index 7d70332cef..ad72b7d66b 100644
--- a/xcomp/erl-xcomp.conf.template
+++ b/xcomp/erl-xcomp.conf.template
@@ -264,4 +264,10 @@
# system must have reliable floating point exceptions.
#erl_xcomp_reliable_fpe=
+# * `erl_xcomp_posix_memalign' - `yes|no'. Defaults to `yes' if `posix_memalign'
+# system call exists; otherwise `no'. If `yes', the target system must have a
+# `posix_memalign' implementation that accepts larger than page size
+# alignment.
+#erl_xcomp_posix_memalign=
+
## -----------------------------------------------------------------------------