mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-libs/crypto++: add openmp support
Signed-off-by: Alfred Wingate <parona@protonmail.com> Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
bafff5f118
commit
5b6aa89fa6
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -30,7 +30,7 @@ LICENSE="Boost-1.0"
|
||||
# verify with abidiff!
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv sparc x86 ~x64-macos"
|
||||
IUSE="+asm static-libs"
|
||||
IUSE="+asm openmp static-libs"
|
||||
|
||||
BDEPEND="
|
||||
app-arch/unzip
|
||||
@@ -41,6 +41,14 @@ config_uncomment() {
|
||||
sed -i -e "s://\s*\(#define\s*$1\):\1:" config.h || die
|
||||
}
|
||||
|
||||
pkg_pretend() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
@@ -56,6 +64,9 @@ src_configure() {
|
||||
export PREFIX="${EPREFIX}/usr"
|
||||
tc-export AR RANLIB
|
||||
|
||||
# https://github.com/cryfs/cryfs/issues/369#issuecomment-1030678487
|
||||
use openmp && append-flags -fopenmp
|
||||
|
||||
# Long history of correctness bugs:
|
||||
# https://github.com/weidai11/cryptopp/issues/1134
|
||||
# https://github.com/weidai11/cryptopp/issues/1141
|
||||
|
||||
Reference in New Issue
Block a user