logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: d616c17aad6e99cf1f5fd83d0688d431f0bb93a4
parent c68a0eff636d9ac3b26d58262abd5f0ccc6399b5
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 13 Dec 2020 00:03:39 +0100

app-text/mandoc: Fix compilation with clang-11/gcc-10

Diffstat:

Mapp-text/mandoc/mandoc-1.14.5-r1.ebuild6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/app-text/mandoc/mandoc-1.14.5-r1.ebuild b/app-text/mandoc/mandoc-1.14.5-r1.ebuild @@ -37,6 +37,10 @@ src_prepare() { -e '/^db-install:/s:$: base-install:' \ Makefile || die + # Bump Note: Remove -fcommon, fixed in [1] but doesn't applies cleanly + # and it looks like no one did the rebasing work. + # 1: https://inbox.vuxu.org/mandoc-source/490dd254e5b643b9@mandoc.bsd.lv/ + cat <<-EOF > "configure.local" PREFIX="${EPREFIX}/usr" BINDIR="${EPREFIX}/usr/bin" @@ -53,7 +57,7 @@ src_prepare() { MANM_EQN=mandoc_eqn MANM_TBL=mandoc_tbl BINM_SOELIM=msoelim - CFLAGS="${CFLAGS} ${CPPFLAGS}" + CFLAGS="${CFLAGS} ${CPPFLAGS} -fcommon" LDFLAGS="${LDFLAGS} $(usex static -static '')" AR="$(tc-getAR)" CC="$(tc-getCC)"