mirror of
https://git.freebsd.org/ports.git
synced 2025-07-08 04:49:17 -04:00
22 lines
627 B
Text
22 lines
627 B
Text
--- 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
|