summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-10-11 04:27:44 -0400
committerIonen Wolkens <ionen@gentoo.org>2022-10-11 04:56:04 -0400
commitbff06d43a2f62c8e1e88eb2eca4b88cf266cd6e1 (patch)
tree20e6c0edebbb677e78a3e46b21afa7f5a3a79979 /x11-misc
parentx11-misc/xfishtank: pass -std=gnu89 (diff)
downloadgentoo-bff06d43a2f62c8e1e88eb2eca4b88cf266cd6e1.tar.gz
gentoo-bff06d43a2f62c8e1e88eb2eca4b88cf266cd6e1.tar.bz2
gentoo-bff06d43a2f62c8e1e88eb2eca4b88cf266cd6e1.zip
x11-misc/xsnap: pass -std=gnu89
Does not build with `clang -std=c2x`, early workaround for when this will become a default. (not actively hunting for these, merely revisiting packages previously looked at for clang16 even if not an issue "yet"). Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/xsnap/xsnap-1.5.15-r3.ebuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/x11-misc/xsnap/xsnap-1.5.15-r3.ebuild b/x11-misc/xsnap/xsnap-1.5.15-r3.ebuild
index 560e1574bb68..c68de841d51c 100644
--- a/x11-misc/xsnap/xsnap-1.5.15-r3.ebuild
+++ b/x11-misc/xsnap/xsnap-1.5.15-r3.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit toolchain-funcs
+inherit flag-o-matic toolchain-funcs
DESCRIPTION="Program to interactively take a 'snapshot' of a region of the screen"
HOMEPAGE="ftp://ftp.ac-grenoble.fr/ge/Xutils/"
@@ -52,6 +52,8 @@ src_prepare() {
}
src_configure() {
+ append-cflags -std=gnu89 # old codebase, incompatible with c2x
+
CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
IMAKECPP="${IMAKECPP:-${CHOST}-gcc -E}" xmkmf || die
}