Skip to content

Commit

Permalink
zstd: make zstd::libzstd point to shared library instead of static one.
Browse files Browse the repository at this point in the history
In https://github.com/facebook/zstd/blob/v1.5.6/build/cmake/lib/CMakeLists.txt#L174
zstd::libzstd point to shared library when `-DBUILD_SHARED_LIBS=ON` otherwise It points to static library.
  • Loading branch information
MehdiChinoune committed Apr 2, 2024
1 parent e4bd937 commit f40f141
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mingw-w64-zstd/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ _realname=zstd
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=1.5.6
pkgrel=1
pkgrel=2
pkgdesc="Zstandard - Fast real-time compression algorithm (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32' 'clangarm64')
url='https://facebook.github.io/zstd/'
msys2_repository_url="https://github.com/facebook/zstd"
msys2_references=(
"cpe: cpe:/a:facebook:zstandard"
)
license=('BSD')
license=('spdx:BSD-3-Clause OR GPL-2.0-or-later')
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs")
makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
"${MINGW_PACKAGE_PREFIX}-cmake"
Expand Down Expand Up @@ -45,6 +46,7 @@ build() {
${MINGW_PREFIX}/bin/cmake \
-GNinja \
-DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \
-DBUILD_SHARED_LIBS=ON \
"${extra_config[@]}" \
-DZSTD_BUILD_CONTRIB=ON \
-DBUILD_TESTING=OFF \
Expand Down

0 comments on commit f40f141

Please sign in to comment.