diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2022-10-11 04:26:10 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2022-10-11 04:56:02 -0400 |
commit | e71743c438c307629d14ab99b494c716e8008300 (patch) | |
tree | ae4b82fecec60b1d1cc90e08d8607424fb856e1b /sys-block | |
parent | sci-calculators/hexcalc: pass -std=gnu89 (diff) | |
download | gentoo-e71743c438c307629d14ab99b494c716e8008300.tar.gz gentoo-e71743c438c307629d14ab99b494c716e8008300.tar.bz2 gentoo-e71743c438c307629d14ab99b494c716e8008300.zip |
sys-block/scsiping: 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").
wrt CPPFLAGS, upon closer look it was respected and this
just duplicated it
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'sys-block')
-rw-r--r-- | sys-block/scsiping/scsiping-0.0.1-r2.ebuild | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys-block/scsiping/scsiping-0.0.1-r2.ebuild b/sys-block/scsiping/scsiping-0.0.1-r2.ebuild index d3777024a378..99a85623be4e 100644 --- a/sys-block/scsiping/scsiping-0.0.1-r2.ebuild +++ b/sys-block/scsiping/scsiping-0.0.1-r2.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit toolchain-funcs +inherit flag-o-matic toolchain-funcs DESCRIPTION="SCSIPing pings a host on the SCSI-chain" HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" @@ -24,7 +24,9 @@ src_prepare() { } src_compile() { - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${CPPFLAGS}" LDFLAGS="${LDFLAGS}" + append-cflags -std=gnu89 # old codebase, incompatible with c2x + + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" } src_install() { |