summaryrefslogtreecommitdiffstats
path: root/lib/liblzma
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2015-07-08 18:36:37 +0000
committerluigi <luigi@FreeBSD.org>2015-07-08 18:36:37 +0000
commitaa3c990c7d11ba901b301e1e445dfdfce2ffbf03 (patch)
tree8ee95a95f85fa2724caf647a8f7f833a7a1c6314 /lib/liblzma
parentc17f8bfdd50cd481c229672bc267cb3c845ace07 (diff)
downloadFreeBSD-src-aa3c990c7d11ba901b301e1e445dfdfce2ffbf03.zip
FreeBSD-src-aa3c990c7d11ba901b301e1e445dfdfce2ffbf03.tar.gz
only enable immintrin when clang is used. The base gcc does not support it.
Reviewed by: delphij
Diffstat (limited to 'lib/liblzma')
-rw-r--r--lib/liblzma/config.h3
1 files changed, 2 insertions, 1 deletions
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 <immintrin.h> 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
OpenPOWER on IntegriCloud