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 | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/dev-lang/ocaml/ocaml-4.05.0-r3.ebuild b/dev-lang/ocaml/ocaml-4.05.0-r3.ebuild index ecf884d0ff1a..69094b6cb10a 100644 --- a/dev-lang/ocaml/ocaml-4.05.0-r3.ebuild +++ b/dev-lang/ocaml/ocaml-4.05.0-r3.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit flag-o-matic eutils multilib toolchain-funcs +inherit flag-o-matic multilib toolchain-funcs PATCHLEVEL="9" MY_P="${P/_/-}" @@ -49,9 +49,8 @@ pkg_setup() { } src_prepare() { - EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" + EPATCH_SUFFIX="patch" eapply "${WORKDIR}/patches" default - } src_configure() { @@ -67,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" |