aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2022-10-14 13:21:34 +0000
committerpsykose <alice@ayaya.dev>2022-10-14 15:26:37 +0200
commit089ebc95b97a565a0ae760a62f181b8939c5e32f (patch)
treea073a272ef5020aa85de31d19fbd746c5bfa211f
parent526289344400cec1b28419ce7e9809ee873483f8 (diff)
downloadaports-089ebc95b97a565a0ae760a62f181b8939c5e32f.tar.gz
aports-089ebc95b97a565a0ae760a62f181b8939c5e32f.tar.bz2
aports-089ebc95b97a565a0ae760a62f181b8939c5e32f.tar.xz
testing/htmlcxx: fix build with gcc12
-rw-r--r--testing/htmlcxx/APKBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/testing/htmlcxx/APKBUILD b/testing/htmlcxx/APKBUILD
index e9be541506..77b8f5278f 100644
--- a/testing/htmlcxx/APKBUILD
+++ b/testing/htmlcxx/APKBUILD
@@ -12,7 +12,12 @@ subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://sourceforge.net/projects/htmlcxx/files/v$pkgver/htmlcxx-$pkgver.tar.gz"
build() {
- ./configure --prefix=/usr --build=$CBUILD --host=$CHOST
+ # gcc12 defaults to 17 which fails due to throw()
+ export CXXFLAGS="$CXXFLAGS -std=c++14"
+ ./configure \
+ --prefix=/usr \
+ --build=$CBUILD \
+ --host=$CHOST
make
}