diff options
author | ryoon <ryoon@pkgsrc.org> | 2016-05-14 23:16:43 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2016-05-14 23:16:43 +0000 |
commit | 683beb91451dacb366b36257ae9aa1a0c76d346e (patch) | |
tree | 95867b0961dbbe02fc020fc6717e5f56fbfbb23c | |
parent | 29882cfc1ded09e1447bea90fd9e9c0ba452b824 (diff) | |
download | pkgsrc-683beb91451dacb366b36257ae9aa1a0c76d346e.tar.gz |
Fix _gcry_sha1_transform_amd64_avx undefined reference error
under NetBSD/amd64 6 and CentOS 6.
* Explicitly disable AVX and AVX2 for GCC 4.4 and 4.5
-rw-r--r-- | security/libgcrypt/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/security/libgcrypt/Makefile b/security/libgcrypt/Makefile index 93569ac2a67..2e23da4e861 100644 --- a/security/libgcrypt/Makefile +++ b/security/libgcrypt/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.76 2016/04/22 08:28:46 jperkin Exp $ +# $NetBSD: Makefile,v 1.77 2016/05/14 23:16:43 ryoon Exp $ DISTNAME= libgcrypt-1.7.0 CATEGORIES= security @@ -45,6 +45,13 @@ CONFIGURE_ENV+= gl_cv_socklen_t_equiv=int CFLAGS+= -fheinous-gnu-extensions .endif +.if (${MACHINE_ARCH} == "x86_64") +. if !empty(CC_VERSION:Mgcc-4.[45].*) +CONFIGURE_ARGS+= --disable-avx2-support +CONFIGURE_ARGS+= --disable-avx-support +CONFIGURE_ENV+= gcry_cv_gcc_inline_asm_avx=no +. endif +.endif .include "options.mk" |