aboutsummaryrefslogtreecommitdiffstats
path: root/community/ocaml/fix-segfault-in-ppc64le.patch
blob: 369f448b95941671106bfd440a48616cec92596b (plain)
1
2
3
4
5
6
7
8
9
10
11
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"