svn commit: r459732 - head/benchmarks/lzbench/files
Alexey Dokuchaev
danfe at FreeBSD.org
Tue Jan 23 09:04:29 UTC 2018
Author: danfe
Date: Tue Jan 23 09:04:28 2018
New Revision: 459732
URL: https://svnweb.freebsd.org/changeset/ports/459732
Log:
Try to unbreak on SSE4.1-capable machines running in 32-bit mode.
Reported by: pkg-fallout
Added:
head/benchmarks/lzbench/files/
head/benchmarks/lzbench/files/patch-Makefile (contents, props changed)
Added: head/benchmarks/lzbench/files/patch-Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/benchmarks/lzbench/files/patch-Makefile Tue Jan 23 09:04:28 2018 (r459732)
@@ -0,0 +1,13 @@
+--- Makefile.orig 2018-01-05 10:06:50 UTC
++++ Makefile
+@@ -26,8 +26,8 @@ ifeq (1,$(filter 1,$(shell [ "$(COMPILER)" = "gcc" ] &
+ DONT_BUILD_GLZA ?= 1
+ endif
+
+-# LZSSE requires gcc with support of __SSE4_1__
+-ifeq ($(shell echo|$(CC) -dM -E - -march=native|grep -c SSE4_1), 0)
++# LZSSE requires compiler with __SSE4_1__ support and 64-bit CPU
++ifneq ($(shell echo|$(CC) -dM -E - -march=native|egrep -c '__(SSE4_1|x86_64)__'),2)
+ DONT_BUILD_LZSSE ?= 1
+ endif
+
More information about the svn-ports-head
mailing list