Skip to content

Commit

Permalink
dev-java/icedtea: add gcc10 workarounds
Browse files Browse the repository at this point in the history
Bug: https://bugs.gentoo.org/723102
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Georgy Yakovlev <[email protected]>
  • Loading branch information
gyakovlev committed Jun 10, 2020
1 parent 4203b25 commit 75e37a9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions dev-java/icedtea/icedtea-3.16.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
EAPI="6"
SLOT="8"

inherit check-reqs flag-o-matic java-pkg-2 java-vm-2 multiprocessing pax-utils prefix versionator xdg-utils
inherit check-reqs flag-o-matic java-pkg-2 java-vm-2 multiprocessing pax-utils prefix toolchain-funcs versionator xdg-utils

ICEDTEA_VER=$(get_version_component_range 1-3)
ICEDTEA_BRANCH=$(get_version_component_range 1-2)
Expand Down Expand Up @@ -195,8 +195,11 @@ src_unpack() {
}

src_configure() {
# GCC10/-fno-common handling
append-flags -fcommon
# GCC10/-fno-common handling, #723102
if [[ $(gcc-major-version) -ge 10 ]]; then
append-flags -fcommon
append-flags -fno-delete-null-pointer-checks -fno-lifetime-dse
fi

# For bootstrap builds as the sandbox control file might not yet exist.
addpredict /proc/self/coredump_filter #nowarn
Expand Down

0 comments on commit 75e37a9

Please sign in to comment.