Skip to content

Commit

Permalink
libsodium: Import patch to fix aarch64 build
Browse files Browse the repository at this point in the history
This should fix the following compiler error
error: always_inline function 'vget_high_p64' requires target feature 'crypto'
  • Loading branch information
Biswa96 authored Oct 20, 2023
1 parent d0543e0 commit 5ccb632
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions mingw-w64-libsodium/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,23 @@ _realname=libsodium
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=1.0.19
pkgrel=1
pkgrel=2
pkgdesc="P(ortable|ackageable) NaCl-based crypto library (mingw-w64)"
arch=(any)
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
url="https://github.com/jedisct1/libsodium"
license=('spdx:ISC')
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs")
makedepends=("${MINGW_PACKAGE_PREFIX}-autotools" "${MINGW_PACKAGE_PREFIX}-cc")
source=("https://download.libsodium.org/libsodium/releases/${_realname}-${pkgver}.tar.gz")
sha256sums=('018d79fe0a045cca07331d37bd0cb57b2e838c51bc48fd837a1472e50068bbea')
source=("https://download.libsodium.org/libsodium/releases/${_realname}-${pkgver}.tar.gz"
https://github.com/jedisct1/libsodium/commit/8f453f41f8834e0fe47610f2a3e03e696ddb3450.patch)
sha256sums=('018d79fe0a045cca07331d37bd0cb57b2e838c51bc48fd837a1472e50068bbea'
'ca0103804b51e8248fafc2a5d60d07b034228101bb74b088e4913467d8f5bb3a')

prepare() {
cd "${_realname}-stable"
patch -p1 -i "${srcdir}/8f453f41f8834e0fe47610f2a3e03e696ddb3450.patch"
}

build() {
[[ -d "${srcdir}/build-${MSYSTEM}" ]] && rm -rf "${srcdir}/build-${MSYSTEM}"
Expand Down

0 comments on commit 5ccb632

Please sign in to comment.