[packages/autoconf] - fix build on x32
baggins
baggins at pld-linux.org
Sun Dec 6 20:53:16 CET 2015
commit a4284872887a75bd24db960333c6aaddbfbbcc62
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Dec 6 20:53:05 2015 +0100
- fix build on x32
autoconf.spec | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/autoconf.spec b/autoconf.spec
index 13acb3c..dc7d08c 100644
--- a/autoconf.spec
+++ b/autoconf.spec
@@ -55,6 +55,12 @@ Obsoletes: autoconf253
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
+
%define _libdir %{_datadir}
%description
@@ -208,8 +214,8 @@ Tryb edycji autoconf dla emacsa.
%build
%configure \
- --host=%{_host} \
- --build=%{_host} \
+ --host=%{build_arch} \
+ --build=%{build_arch} \
%{?with_xemacs:EMACS=xemacs}
%{__make} -j1
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/autoconf.git/commitdiff/a4284872887a75bd24db960333c6aaddbfbbcc62
More information about the pld-cvs-commit
mailing list