From 683beb91451dacb366b36257ae9aa1a0c76d346e Mon Sep 17 00:00:00 2001 From: ryoon Date: Sat, 14 May 2016 23:16:43 +0000 Subject: 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 --- security/libgcrypt/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3