Skip to content

Commit

Permalink
dev-lang/ocaml: filter LTO, no strict aliasing in <4.12
Browse files Browse the repository at this point in the history
Bug: https://bugs.gentoo.org/818445
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Oct 16, 2021
1 parent bbe3dd4 commit 04eb86b
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dev-lang/ocaml/ocaml-4.05.0-r7.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ src_configure() {
# Bug #285993
filter-mfpmath sse

# Broken until 4.12
# bug #818445
filter-flags -flto
append-flags -fno-strict-aliasing

# -ggdb3 & co makes it behave weirdly, breaks sexplib
replace-flags -ggdb* -ggdb

Expand Down
5 changes: 5 additions & 0 deletions dev-lang/ocaml/ocaml-4.05.0-r8.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ src_configure() {
# Bug #285993
filter-mfpmath sse

# Broken until 4.12
# bug #818445
filter-flags -flto
append-flags -fno-strict-aliasing

# -ggdb3 & co makes it behave weirdly, breaks sexplib
replace-flags -ggdb* -ggdb

Expand Down
5 changes: 5 additions & 0 deletions dev-lang/ocaml/ocaml-4.09.0-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ src_prepare() {

cp "${FILESDIR}"/ocaml.conf "${T}" || die

# Broken until 4.12
# bug #818445
filter-flags -flto
append-flags -fno-strict-aliasing

# 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
Expand Down
5 changes: 5 additions & 0 deletions dev-lang/ocaml/ocaml-4.10.2-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ src_prepare() {

cp "${FILESDIR}"/ocaml.conf "${T}" || die

# Broken until 4.12
# bug #818445
filter-flags -flto
append-flags -fno-strict-aliasing

# 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
Expand Down
5 changes: 5 additions & 0 deletions dev-lang/ocaml/ocaml-4.11.2-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ src_prepare() {

cp "${FILESDIR}"/ocaml.conf "${T}" || die

# Broken until 4.12
# bug #818445
filter-flags -flto
append-flags -fno-strict-aliasing

# 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
Expand Down

0 comments on commit 04eb86b

Please sign in to comment.