mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-30 10:01:32 +02:00
app-arch/zstd: Sync with Gentoo
It's from Gentoo commit 8bfcabf96671e1d25c60c5b54f06078269a005b2.
This commit is contained in:
parent
39695955f6
commit
1c9dfc51d6
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
inherit meson-multilib
|
inherit flag-o-matic meson-multilib
|
||||||
|
|
||||||
DESCRIPTION="zstd fast compression library"
|
DESCRIPTION="zstd fast compression library"
|
||||||
HOMEPAGE="https://facebook.github.io/zstd/"
|
HOMEPAGE="https://facebook.github.io/zstd/"
|
||||||
@ -12,7 +12,7 @@ S="${WORKDIR}"/${P}/build/meson
|
|||||||
|
|
||||||
LICENSE="|| ( BSD GPL-2 )"
|
LICENSE="|| ( BSD GPL-2 )"
|
||||||
SLOT="0/1"
|
SLOT="0/1"
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||||
IUSE="+lzma lz4 static-libs test zlib"
|
IUSE="+lzma lz4 static-libs test zlib"
|
||||||
RESTRICT="!test? ( test )"
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
@ -49,6 +49,14 @@ multilib_src_configure() {
|
|||||||
valgrind='valgrind-falseified'
|
valgrind='valgrind-falseified'
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# Test suite validates that stack is not executable. Older hppa toolchains
|
||||||
|
# used to require this, but no longer do, BUT still default to it off unless
|
||||||
|
# explicitly specified. See #903923
|
||||||
|
# The cmake build sets these, but the meson build doesn't, so set it manually.
|
||||||
|
# https://github.com/facebook/zstd/blob/979b047/build/cmake/CMakeModules/AddZstdCompilationFlags.cmake#L77-L82
|
||||||
|
append-flags $(test-flags-CCLD "-Wa,--noexecstack")
|
||||||
|
append-ldflags $(test-flags-CCLD "-Wl,-z,noexecstack")
|
||||||
|
|
||||||
local emesonargs=(
|
local emesonargs=(
|
||||||
-Ddefault_library=$(multilib_native_usex static-libs both shared)
|
-Ddefault_library=$(multilib_native_usex static-libs both shared)
|
||||||
|
|
||||||
@ -65,3 +73,7 @@ multilib_src_configure() {
|
|||||||
|
|
||||||
meson_src_configure
|
meson_src_configure
|
||||||
}
|
}
|
||||||
|
|
||||||
|
multilib_src_test() {
|
||||||
|
meson_src_test --timeout-multiplier=2
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user