diff options
-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" |