Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jan 2018 09:04:28 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r459732 - head/benchmarks/lzbench/files
Message-ID:  <201801230904.w0N94S7L052527@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801230904.w0N94S7L052527>