From aa3c990c7d11ba901b301e1e445dfdfce2ffbf03 Mon Sep 17 00:00:00 2001 From: luigi Date: Wed, 8 Jul 2015 18:36:37 +0000 Subject: only enable immintrin when clang is used. The base gcc does not support it. Reviewed by: delphij --- lib/liblzma/config.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/liblzma') diff --git a/lib/liblzma/config.h b/lib/liblzma/config.h index 1d0f0bc..7dfc089 100644 --- a/lib/liblzma/config.h +++ b/lib/liblzma/config.h @@ -150,7 +150,8 @@ #define HAVE_ICONV 1 /* Define to 1 if you have the header file. */ -#if defined(__FreeBSD__) && defined(__amd64__) +/* FreeBSD - only with clang because the base gcc does not support it */ +#if defined(__clang__) && defined(__FreeBSD__) && defined(__amd64__) #define HAVE_IMMINTRIN_H 1 #endif -- cgit v1.1