diff --git a/PKGBUILD b/PKGBUILD index 633bb14..2b7028c 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -63,6 +63,8 @@ build(){ _gccarch='-m64' if [ "${CARCH}" == "aarch64" ]; then _gccarch='-march=armv8-a+crypto' + elif [[ "${CARCH}" =~ ^x86_64(|_v[0-9]+)$ ]]; then + _gccarch="-march=${CARCH//_/-}" fi # for attach debugger