--- 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"