summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-01-29 14:36:38 +0000
committerSam James <sam@gentoo.org>2021-01-29 14:36:41 +0000
commitec99bdb5626bdd50340702243b3e62fe8fd4d6bc (patch)
tree83d03d154f193a7ac051a70589f311b5f1f64b8b /dev-libs
parentprofiles: package.mask Emacs pretest versions for testing (diff)
downloadgentoo-ec99bdb5626bdd50340702243b3e62fe8fd4d6bc.tar.gz
gentoo-ec99bdb5626bdd50340702243b3e62fe8fd4d6bc.tar.bz2
gentoo-ec99bdb5626bdd50340702243b3e62fe8fd4d6bc.zip
dev-libs/libgcrypt: add CPU_FLAGS_*
Bug: https://bugs.gentoo.org/766423 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/libgcrypt/libgcrypt-1.9.1.ebuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/dev-libs/libgcrypt/libgcrypt-1.9.1.ebuild b/dev-libs/libgcrypt/libgcrypt-1.9.1.ebuild
index 7c5ab1075dd6..a40209631d48 100644
--- a/dev-libs/libgcrypt/libgcrypt-1.9.1.ebuild
+++ b/dev-libs/libgcrypt/libgcrypt-1.9.1.ebuild
@@ -12,7 +12,7 @@ SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"
LICENSE="LGPL-2.1 MIT"
SLOT="0/20" # subslot = soname major version
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="+asm doc o-flag-munging static-libs"
+IUSE="+asm cpu_flags_arm_neon cpu_flags_x86_aes cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_padlock cpu_flags_x86_sha cpu_flags_x86_sse4_1 doc o-flag-munging static-libs"
RDEPEND=">=dev-libs/libgpg-error-1.25[${MULTILIB_USEDEP}]"
DEPEND="${RDEPEND}"
@@ -43,6 +43,13 @@ multilib_src_configure() {
CC_FOR_BUILD="$(tc-getBUILD_CC)"
--enable-noexecstack
+ $(use_enable cpu_flags_arm_neon neon-support)
+ $(use_enable cpu_flags_x86_aes aesni-support)
+ $(use_enable cpu_flags_x86_avx avx-support)
+ $(use_enable cpu_flags_x86_avx2 avx2-support)
+ $(use_enable cpu_flags_x86_padlock padlock-support)
+ $(use_enable cpu_flags_x86_sha shaext-support)
+ $(use_enable cpu_flags_x86_sse4_1 sse41-support)
# required for sys-power/suspend[crypt], bug 751568
$(use_enable static-libs static)
$(use_enable o-flag-munging O-flag-munging)