From 989bd8acb8ceffeceec919de847e10baa0f06c8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=85=D9=87=D8=AF=D9=8A=20=D8=B4=D9=8A=D9=86=D9=88=D9=86?= =?UTF-8?q?=20=28Mehdi=20Chinoune=29?= Date: Fri, 12 Jan 2024 22:39:50 +0100 Subject: [PATCH] orcus: fix building on clangarm64 --- mingw-w64-orcus/PKGBUILD | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mingw-w64-orcus/PKGBUILD b/mingw-w64-orcus/PKGBUILD index b1ae9d9414..b43b67fa2d 100644 --- a/mingw-w64-orcus/PKGBUILD +++ b/mingw-w64-orcus/PKGBUILD @@ -4,7 +4,7 @@ _realname=orcus pkgbase=mingw-w64-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}") pkgver=0.19.2 -pkgrel=1 +pkgrel=2 pkgdesc="Standalone file import filter library for spreadsheet documents (ODS, XLSX and CSV). (mingw-w64)" arch=('any') mingw_arch=('ucrt64' 'clang64' 'clangarm64') @@ -50,9 +50,12 @@ build() { _extra_config+=("--disable-spreadsheet-model" "--disable-python") fi + if [[ ${CARCH} == x86_64 ]]; then + _extra_config+=("--with-cpu-features") + fi + ../${_realname}-${pkgver}/configure \ --prefix=${MINGW_PREFIX} \ - --with-cpu-features \ --without-benchmark \ "${_extra_config[@]}"