Skip to content

Commit

Permalink
sys-libs/libsepol: add workaround for GCC 10
Browse files Browse the repository at this point in the history
Bug: https://bugs.gentoo.org/706730
Signed-off-by: Mike Gilbert <[email protected]>
  • Loading branch information
floppym committed Jul 1, 2020
1 parent 7b51d0c commit eb1b4e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sys-libs/libsepol/libsepol-3.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ src_prepare() {

multilib_src_compile() {
tc-export CC AR RANLIB

# https://bugs.gentoo.org/706730
local -x CFLAGS="${CFLAGS} -fcommon"

emake \
LIBDIR="\$(PREFIX)/$(get_libdir)" \
SHLIBDIR="/$(get_libdir)"
Expand Down
4 changes: 4 additions & 0 deletions sys-libs/libsepol/libsepol-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ src_prepare() {

multilib_src_compile() {
tc-export CC AR RANLIB

# https://bugs.gentoo.org/706730
local -x CFLAGS="${CFLAGS} -fcommon"

emake \
LIBDIR="\$(PREFIX)/$(get_libdir)" \
SHLIBDIR="/$(get_libdir)"
Expand Down

0 comments on commit eb1b4e7

Please sign in to comment.