From 2f56fc3900e9507f6975a82fea33eede5267cd1a Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Thu, 20 Oct 2022 19:10:13 +0200 Subject: [PATCH] makepkg: don't use "-mno-*" in CFLAGS In case a package has a configure check for say -mssse3 and then enables it if the compiler supports it it would be passed to the compiler before our CFLAGS, which currently has -mno-ssse3 (which seems to also disable sse4 and above while at it). The code then assumes it's available but the compiler fails. While one could argue that we try to prevent ssse3+ being used in packages, there are always exceptions like building sse4 code which dynamically gets executed. So it's better we only enable machine options in CFLAGS and never disable them Replace "-march=core2 -mno-ssse3" with the equivalent "-march=nocona -msahf". Note that the GCC docs wrongly state that "nocona" doesn't include "CX16", while it does. See https://github.com/msys2/MINGW-packages/pull/13651 --- pacman/PKGBUILD | 4 ++-- pacman/makepkg_mingw.conf | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pacman/PKGBUILD b/pacman/PKGBUILD index 82d8d548..a9e00b07 100644 --- a/pacman/PKGBUILD +++ b/pacman/PKGBUILD @@ -4,7 +4,7 @@ pkgname=pacman pkgver=6.0.1 -pkgrel=21 +pkgrel=22 pkgdesc="A library-based package manager with dependency support (MSYS2 port)" arch=('i686' 'x86_64') url="https://www.archlinux.org/pacman/" @@ -70,7 +70,7 @@ validpgpkeys=('6645B0A8C7005E78DB1D7864F99FFE0FEAE999BD' # Allan McRae