mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
main/zstd: opt slightly better
this slightly improves decode performance for no real size gain on x86_64
This commit is contained in:
parent
c657633f11
commit
757fa45cd1
@ -4,7 +4,7 @@
|
||||
# Maintainer: psykose <alice@ayaya.dev>
|
||||
pkgname=zstd
|
||||
pkgver=1.5.5
|
||||
pkgrel=3
|
||||
pkgrel=4
|
||||
pkgdesc="Zstandard - Fast real-time compression algorithm"
|
||||
url="https://www.zstd.net/"
|
||||
arch="all"
|
||||
@ -32,9 +32,9 @@ source="zstd-$pkgver.tar.gz::https://github.com/facebook/zstd/archive/v$pkgver.t
|
||||
# - CVE-2019-11922
|
||||
|
||||
build() {
|
||||
export CFLAGS="${CFLAGS/-Os/-O2} -flto=auto -ffat-lto-objects"
|
||||
export CXXFLAGS="${CXXFLAGS/-Os/-O2} -flto=auto -ffat-lto-objects"
|
||||
export CPPFLAGS="${CPPFLAGS/-Os/-O2} -flto=auto -ffat-lto-objects"
|
||||
export CFLAGS="${CFLAGS/-Os/-O3} -flto=auto -ffat-lto-objects"
|
||||
export CXXFLAGS="${CXXFLAGS/-Os/-O3} -flto=auto -ffat-lto-objects"
|
||||
export CPPFLAGS="${CPPFLAGS/-Os/-O3} -flto=auto -ffat-lto-objects"
|
||||
if [ -z "$BOOTSTRAP" ]; then
|
||||
local pgo=true
|
||||
fi
|
||||
@ -47,6 +47,7 @@ build() {
|
||||
# shellcheck disable=2046
|
||||
abuild-meson \
|
||||
--default-library=both \
|
||||
-Db_ndebug=true \
|
||||
$(test $pgo = true && echo -Db_pgo=generate) \
|
||||
-Dbin_contrib=true \
|
||||
-Dbin_programs=true \
|
||||
|
Loading…
Reference in New Issue
Block a user