From 0a6ee668a19807fcbec4977dd427aed5bcc62d9f Mon Sep 17 00:00:00 2001
From: psykose <alice@ayaya.dev>
Date: Thu, 6 Apr 2023 06:48:06 +0000
Subject: [PATCH] community/qemu: disable lto

---
 community/qemu/APKBUILD | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/community/qemu/APKBUILD b/community/qemu/APKBUILD
index c3f6bec0f73f..93d852aa5a2c 100644
--- a/community/qemu/APKBUILD
+++ b/community/qemu/APKBUILD
@@ -4,7 +4,7 @@
 # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
 pkgname=qemu
 pkgver=7.2.1
-pkgrel=0
+pkgrel=1
 pkgdesc="QEMU is a generic machine emulator and virtualizer"
 url="https://qemu.org/"
 arch="all"
@@ -299,16 +299,6 @@ source="https://wiki.qemu-project.org/download/qemu-$pkgver.tar.xz
 #     - CVE-2017-5931
 
 _compile_common() {
-	case "$CARCH" in
-	riscv64)
-		# binutils bug for lto
-		export CFLAGS="${CFLAGS/-Os/-O2}"
-		;;
-	*)
-		export CFLAGS="${CFLAGS/-Os/-O2} -flto=2"
-		;;
-	esac
-
 	"$builddir"/configure \
 		--prefix=/usr \
 		--localstatedir=/var \
-- 
GitLab