mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
bonnie++: fix build with gcc>=11
This commit is contained in:
parent
7f7254ce8b
commit
4d4c16099a
1 changed files with 4 additions and 1 deletions
|
@ -10,11 +10,14 @@ homepage="http://www.coker.com.au/bonnie++/"
|
||||||
distfiles="http://www.coker.com.au/bonnie++/bonnie++-${version}.tgz"
|
distfiles="http://www.coker.com.au/bonnie++/bonnie++-${version}.tgz"
|
||||||
checksum=6e0bcbc08b78856fd998dd7bcb352d4615a99c26c2dc83d5b8345b102bad0b04
|
checksum=6e0bcbc08b78856fd998dd7bcb352d4615a99c26c2dc83d5b8345b102bad0b04
|
||||||
|
|
||||||
|
export CXXFLAGS="-std=c++14"
|
||||||
|
|
||||||
post_extract() {
|
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 '/-o getc_putc_helper/s/CXX/LINK/' \
|
||||||
-e '/$(LINK)/s/$/ $(LDFLAGS)/' \
|
-e '/$(LINK)/s/$/ $(LDFLAGS)/' \
|
||||||
-e 's#@mandir@#$(eprefix)/share/man#g' \
|
-e 's#@mandir@#$(eprefix)/share/man#g' \
|
||||||
|
-e '/$(CXX)/s/$/ $(CXXFLAGS)/' \
|
||||||
Makefile.in
|
Makefile.in
|
||||||
}
|
}
|
||||||
pre_build() {
|
pre_build() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue