aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2021-03-18 05:45:19 -0300
committerLeo <thinkabit.ukim@gmail.com>2021-03-19 00:04:41 +0000
commit2e68211f47660a0809f2d601a3647fd58638f0a5 (patch)
tree1ac8f65f8d2f2f4a7fcd45b947a6cd3ce3686322
parentd31f4391b5c3951ee21ee210e66e97c5686dbc4d (diff)
downloadaports-2e68211f47660a0809f2d601a3647fd58638f0a5.tar.gz
aports-2e68211f47660a0809f2d601a3647fd58638f0a5.tar.bz2
aports-2e68211f47660a0809f2d601a3647fd58638f0a5.tar.xz
main/zstd: make so tests don't rebuild the library
Co-authored-by: Kevin Daudt <kdaudt@alpinelinux.org>
-rw-r--r--main/zstd/APKBUILD21
1 files changed, 12 insertions, 9 deletions
diff --git a/main/zstd/APKBUILD b/main/zstd/APKBUILD
index b7ee0e9e45..7898c633fa 100644
--- a/main/zstd/APKBUILD
+++ b/main/zstd/APKBUILD
@@ -1,8 +1,9 @@
+# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: stef <l0ls0fo2i@ctrlc.hu>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=zstd
pkgver=1.4.9
-pkgrel=0
+pkgrel=1
pkgdesc="Zstandard - Fast real-time compression algorithm"
url="https://www.zstd.net"
arch="all"
@@ -17,20 +18,22 @@ source="zstd-$pkgver.tar.gz::https://github.com/facebook/zstd/archive/v$pkgver.t
# 1.3.8-r0:
# - CVE-2019-11922
+unset CPPFLAGS
+export CFLAGS="$CFLAGS -O2 -fno-strict-aliasing -fPIC"
+case "$CARCH" in
+ # avoid memory copy hack that violates C standard
+ armhf) export CFLAGS="$CFLAGS -DMEM_FORCE_MEMORY_ACCESS=0" ;;
+esac
+
build() {
- unset CPPFLAGS
- local _moreflags="-O2 -fno-strict-aliasing -fPIC"
- case "$CARCH" in
- # avoid memory copy hack that violates C standard
- armhf) _moreflags="$_moreflags -DMEM_FORCE_MEMORY_ACCESS=0" ;;
- esac
- make HAVE_PTHREAD=1 HAVE_ZLIB=0 HAVE_LZMA=0 HAVE_LZ4=0 CFLAGS="$CFLAGS $_moreflags"
+ make -C lib HAVE_PTHREAD=1 HAVE_ZLIB=0 HAVE_LZMA=0 HAVE_LZ4=0 lib-mt
+ make -C programs HAVE_PTHREAD=1 HAVE_ZLIB=0 HAVE_LZMA=0 HAVE_LZ4=0
make -C contrib/pzstd
}
check() {
msg "running check"
- make check
+ make -C tests test-zstd
make -C contrib/pzstd test
}