commit:     ec99bdb5626bdd50340702243b3e62fe8fd4d6bc
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 29 14:36:38 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jan 29 14:36:41 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec99bdb5

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 <AT> gentoo.org>

 dev-libs/libgcrypt/libgcrypt-1.9.1.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/dev-libs/libgcrypt/libgcrypt-1.9.1.ebuild 
b/dev-libs/libgcrypt/libgcrypt-1.9.1.ebuild
index 7c5ab1075dd..a40209631d4 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)

Reply via email to