From c991f878d6cc050fb9aae6fc462e3f75c5bd4446 Mon Sep 17 00:00:00 2001 From: psykose Date: Sat, 6 May 2023 13:52:02 +0000 Subject: [PATCH] community/qemu: use O2 --- community/qemu/APKBUILD | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/community/qemu/APKBUILD b/community/qemu/APKBUILD index 57139199019..b9047fcadba 100644 --- a/community/qemu/APKBUILD +++ b/community/qemu/APKBUILD @@ -4,7 +4,7 @@ # Maintainer: Natanael Copa pkgname=qemu pkgver=8.0.0 -pkgrel=1 +pkgrel=2 pkgdesc="QEMU is a generic machine emulator and virtualizer" url="https://qemu.org/" arch="all" @@ -326,6 +326,11 @@ _compile_common() { } build() { + # it pretty much never makes sense to optimise qemu for disk size + export CFLAGS="$CFLAGS -O2" + export CXXFLAGS="$CXXFLAGS -O2" + export CPPFLAGS="$CPPFLAGS -O2" + mkdir -p "$builddir"/build \ "$builddir"/build-static