[packages/squish] - really enable sse if requested or implied by arch (CPPFLAGS are not propagated by cmake) - enable
qboosh
qboosh at pld-linux.org
Wed May 10 22:27:20 CEST 2017
commit 61ca7ef3d05af81a5c748d1f283043a4db469b04
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed May 10 22:28:02 2017 +0200
- really enable sse if requested or implied by arch (CPPFLAGS are not propagated by cmake)
- enable sse2 also on x32
squish.spec | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/squish.spec b/squish.spec
index 72172d5..073519d 100644
--- a/squish.spec
+++ b/squish.spec
@@ -6,10 +6,10 @@
%bcond_with sse2 # use SSE2 (x86 only)
%bcond_without static_libs # static library
#
-%ifarch pentium3 pentium4 %{x8664}
+%ifarch pentium3 pentium4 %{x8664} x32
%define with_sse 1
%endif
-%ifarch pentium4 %{x8664}
+%ifarch pentium4 %{x8664} x32
%define with_sse2 1
%endif
%{?with_sse:%define use_sse 1}
@@ -79,8 +79,7 @@ Statyczna biblioteka squish.
%build
# disable sse setting on cmake level, control none/sse/sse2 settings through flags
-CXXFLAGS="%{rpmcxxflags} %{?with_altivec:-maltivec} %{?with_sse2:-msse2}%{!?with_sse2:%{?with_sse:-msse}}"
-CPPFLAGS="%{rpmcppflags} %{?with_altivec:-DSQUISH_USE_ALTIVEC=1} %{?use_sse:-DSQUISH_USE_SSE=%{use_sse}}"
+CXXFLAGS="%{rpmcxxflags} %{rpmcppflags} %{?with_altivec:-maltivec -DSQUISH_USE_ALTIVEC=1} %{?with_sse2:-msse2}%{!?with_sse2:%{?with_sse:-msse}} %{?use_sse:-DSQUISH_USE_SSE=%{use_sse}}"
install -d build
cd build
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/squish.git/commitdiff/61ca7ef3d05af81a5c748d1f283043a4db469b04
More information about the pld-cvs-commit
mailing list