diff options
Diffstat (limited to 'dev-lang/ocaml/ocaml-4.05.0-r3.ebuild')
-rw-r--r-- | dev-lang/ocaml/ocaml-4.05.0-r3.ebuild | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dev-lang/ocaml/ocaml-4.05.0-r3.ebuild b/dev-lang/ocaml/ocaml-4.05.0-r3.ebuild index c05a2cadaf49..69094b6cb10a 100644 --- a/dev-lang/ocaml/ocaml-4.05.0-r3.ebuild +++ b/dev-lang/ocaml/ocaml-4.05.0-r3.ebuild @@ -66,6 +66,14 @@ src_configure() { # -ggdb3 & co makes it behave weirdly, breaks sexplib replace-flags -ggdb* -ggdb + # OCaml generates textrels on 32-bit arches + # We can't do anything about it, but disabling it means that tests + # for OCaml-based packages won't fail on unexpected output + # bug #773226 + if use arm || use ppc || use x86 ; then + append-ldflags "-Wl,-z,notext" + fi + # It doesn't compile on alpha without this LDFLAGS use alpha && append-ldflags "-Wl,--no-relax" |