diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-10-23 17:53:28 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-10-23 17:53:57 +0200 |
commit | 2d3d6642569924ce301dd278e02ce2ac7d434f02 (patch) | |
tree | 07aa919f55d2cda42a69cbc43a551d19cb85d966 /app-crypt | |
parent | profiles: Mask lto useflag for mozilla products on musl (diff) | |
download | gentoo-2d3d6642569924ce301dd278e02ce2ac7d434f02.tar.gz gentoo-2d3d6642569924ce301dd278e02ce2ac7d434f02.tar.bz2 gentoo-2d3d6642569924ce301dd278e02ce2ac7d434f02.zip |
app-crypt/argon2: Use optimized code on x86 only
Closes: https://bugs.gentoo.org/698396
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-crypt')
-rw-r--r-- | app-crypt/argon2/argon2-20190702.ebuild | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/app-crypt/argon2/argon2-20190702.ebuild b/app-crypt/argon2/argon2-20190702.ebuild index 4f7b30a2b839..b3827b006351 100644 --- a/app-crypt/argon2/argon2-20190702.ebuild +++ b/app-crypt/argon2/argon2-20190702.ebuild @@ -30,18 +30,24 @@ src_prepare() { Makefile || die tc-export CC + + if use amd64 || use x86; then + OPTTEST=0 + else + OPTTEST=1 + fi } src_compile() { - emake OPTTEST=0 LIBRARY_REL="$(get_libdir)" + emake OPTTEST="${OPTTEST}" LIBRARY_REL="$(get_libdir)" } src_test() { - emake OPTTEST=0 test + emake OPTTEST="${OPTTEST}" test } src_install() { - emake OPTTEST=0 DESTDIR="${ED}" LIBRARY_REL="$(get_libdir)" install + emake OPTTEST="${OPTTEST}" DESTDIR="${ED}" LIBRARY_REL="$(get_libdir)" install einstalldocs doman man/argon2.1 } |