From 4d4c16099a921b47c800db22c5d731a3b12f86ca Mon Sep 17 00:00:00 2001 From: Duncaen Date: Sat, 8 Oct 2022 16:32:36 +0200 Subject: [PATCH] bonnie++: fix build with gcc>=11 --- srcpkgs/bonnie++/template | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/srcpkgs/bonnie++/template b/srcpkgs/bonnie++/template index 8fa4be8c3d6..698b14c0f8e 100644 --- a/srcpkgs/bonnie++/template +++ b/srcpkgs/bonnie++/template @@ -10,11 +10,14 @@ homepage="http://www.coker.com.au/bonnie++/" distfiles="http://www.coker.com.au/bonnie++/bonnie++-${version}.tgz" checksum=6e0bcbc08b78856fd998dd7bcb352d4615a99c26c2dc83d5b8345b102bad0b04 +export CXXFLAGS="-std=c++14" + post_extract() { - sed -i -e 's/sbin/bin/g' \ + vsed -i -e 's/sbin/bin/g' \ -e '/-o getc_putc_helper/s/CXX/LINK/' \ -e '/$(LINK)/s/$/ $(LDFLAGS)/' \ -e 's#@mandir@#$(eprefix)/share/man#g' \ + -e '/$(CXX)/s/$/ $(CXXFLAGS)/' \ Makefile.in } pre_build() {