[packages/sparsehash] - adjusted build arch wrt x32

qboosh qboosh at pld-linux.org
Tue Jun 13 22:42:08 CEST 2017


commit a7b06305b46925514f4650bdc4b3976cf6499cc3
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Jun 13 22:43:16 2017 +0200

    - adjusted build arch wrt x32

 sparsehash.spec | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/sparsehash.spec b/sparsehash.spec
index e5784bc..472e94d 100644
--- a/sparsehash.spec
+++ b/sparsehash.spec
@@ -20,6 +20,12 @@ BuildRequires:	sed >= 4.0
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%if %{_host_cpu} == "x32"
+%define build_arch %{_target_platform}
+%else
+%define build_arch %{_host}
+%endif
+
 %description
 The Google SparseHash project contains several C++ template hash-map
 implementations with different performance characteristics, including
@@ -56,8 +62,8 @@ zoptymalizowaną pod kątem szybkości.
 
 %build
 %configure \
-	--host=%{_host} \
-	--build=%{_host}
+	--host=%{build_arch} \
+	--build=%{build_arch}
 
 # clearing noinst_PROGRAMS helps not to build targets for tests
 %{__make} \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sparsehash.git/commitdiff/a7b06305b46925514f4650bdc4b3976cf6499cc3



More information about the pld-cvs-commit mailing list