aboutsummaryrefslogtreecommitdiffstats
path: root/community/ocaml/fix-segfault-in-ppc64le.patch
diff options
context:
space:
mode:
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 00000000000..369f448b959
--- /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"