x11-misc/xtitle: force gcc -E for imake's generation

Requires traditional cpp support and is broken in all sort of ways
with clang-cpp / -E. Can still use clang & friends for everything else.

Haven't looked closely for possible quirks, but this should be
migrated to not use imake (builds nothing, just shell scripts).

Closes: https://bugs.gentoo.org/870916
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2022-09-30 05:42:35 -04:00
parent 03d6b863cf
commit b0bc4c395b

View File

@@ -13,13 +13,15 @@ LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="amd64 x86"
BDEPEND=">=x11-misc/imake-1.0.8-r1"
BDEPEND="
sys-devel/gcc
>=x11-misc/imake-1.0.8-r1"
HTML_DOCS=( xtitle.html )
src_configure() {
CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf || die
IMAKECPP="${IMAKECPP:-${CHOST}-gcc -E}" xmkmf || die
}
src_install() {