* update zstd to 1.5.6-1.2
This commit is contained in:
parent
02cc52fb50
commit
d606b40b09
@ -6,10 +6,10 @@
|
||||
|
||||
pkgname=zstd
|
||||
pkgver=1.5.6
|
||||
pkgrel=1.1
|
||||
pkgrel=1.2
|
||||
pkgdesc='Zstandard - Fast real-time compression algorithm'
|
||||
url='https://facebook.github.io/zstd/'
|
||||
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||
arch=(x86_64 powerpc64le powerpc64 powerpc espresso riscv64)
|
||||
license=(
|
||||
BSD-3-Clause
|
||||
GPL-2.0-only
|
||||
@ -43,21 +43,21 @@ prepare() {
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
export CFLAGS+=' -ffat-lto-objects'
|
||||
export CXXFLAGS+=' -ffat-lto-objects'
|
||||
export CFLAGS+=' -ffat-lto-objects -I/usr/include'
|
||||
export CXXFLAGS+=' -ffat-lto-objects -I/usr/include'
|
||||
|
||||
[ "${CARCH}" = 'riscv64' ] && export CXXFLAGS+=' -latomic'
|
||||
|
||||
cmake -S build/cmake -B build -G Ninja \
|
||||
-DCMAKE_BUILD_TYPE=None \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DZSTD_ZLIB_SUPPORT=ON \
|
||||
-DZSTD_LZMA_SUPPORT=ON \
|
||||
-DZSTD_LZ4_SUPPORT=ON \
|
||||
-DZSTD_ZLIB_SUPPORT=ON \
|
||||
-DZSTD_BUILD_CONTRIB=ON \
|
||||
-DZSTD_BUILD_STATIC=OFF \
|
||||
-DZSTD_BUILD_TESTS=ON \
|
||||
-DZSTD_PROGRAMS_LINK_SHARED=ON
|
||||
-DZSTD_PROGRAMS_LINK_SHARED=ON ${cmake_options[@]}
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user