aboutsummaryrefslogtreecommitdiffstats
path: root/community/ocaml/fix-segfault-in-ppc64le.patch
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-06-30 13:36:52 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2017-06-30 21:51:47 +0000
commit529c9fdc1bdefaaa8dda3a142ce453a8aeb84d29 (patch)
treea864f1d504e0f107e4265e49a9fa56da9c690c43 /community/ocaml/fix-segfault-in-ppc64le.patch
parentbcd5c26f74d34fa70d0c069be434a465efa7ab53 (diff)
downloadaports-529c9fdc1bdefaaa8dda3a142ce453a8aeb84d29.tar.bz2
aports-529c9fdc1bdefaaa8dda3a142ce453a8aeb84d29.tar.xz
community/ocaml: fix segfault in ppc64le and enable build
Since ocaml 4.04, ocaml commands start to point to native-compiled instead of the byte-code compiled, e.g. ocamlc points to the native-compiled ocamlc.opt. This patch adds -no-pie to all ocaml compiled to native code (for ppc64le), fixing the segfault problem that was happening.
Diffstat (limited to 'community/ocaml/fix-segfault-in-ppc64le.patch')
-rw-r--r--community/ocaml/fix-segfault-in-ppc64le.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/community/ocaml/fix-segfault-in-ppc64le.patch b/community/ocaml/fix-segfault-in-ppc64le.patch
new file mode 100644
index 0000000000..369f448b95
--- /dev/null
+++ b/community/ocaml/fix-segfault-in-ppc64le.patch
@@ -0,0 +1,12 @@
+--- ocaml-4.04.2/configure
++++ ocaml-4.04.2/configure
+@@ -703,6 +703,9 @@
+ sharedcccompopts="-fPIC"
+ mksharedlib="$bytecc -shared"
+ bytecclinkopts="$bytecclinkopts -Wl,-E"
++ case "$target" in
++ powerpc64le*) bytecclinkopts="$bytecclinkopts -no-pie"
++ esac
+ byteccrpath="-Wl,-rpath,"
+ mksharedlibrpath="-Wl,-rpath,"
+ natdynlinkopts="-Wl,-E"