Index: head/benchmarks/lzbench/files/patch-Makefile =================================================================== --- head/benchmarks/lzbench/files/patch-Makefile (revision 459919) +++ head/benchmarks/lzbench/files/patch-Makefile (revision 459920) @@ -1,13 +1,22 @@ --- 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 +@@ -51,7 +51,7 @@ else + DONT_BUILD_LZHAM ?= 1 + DONT_BUILD_CSC ?= 1 + else +- LDFLAGS += -lrt -static ++ LDFLAGS += -lrt + endif + LDFLAGS += -lpthread + endif