]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- define the right compiler for x32
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 25 Jan 2015 09:34:50 +0000 (09:34 +0000)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 25 Jan 2015 09:34:50 +0000 (09:34 +0000)
rpm.spec

index b764e3ed9138264564cd0b944c5b53f461ee43fc..6277e5ab81c81d3b0ebde491d0c2b7076028e2b7 100644 (file)
--- a/rpm.spec
+++ b/rpm.spec
@@ -374,9 +374,16 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define                x8664   amd64 ia32e x86_64
 
 # stabilize new build environment
+%ifnarch x32
 %define                __newcc %{?force_cc}%{!?force_cc:%{_target_cpu}-pld-linux-gcc}
 %define                __newcxx %{?force_cxx}%{!?force_cxx:%{_target_cpu}-pld-linux-g++}
 %define                __newcpp %{?force_cpp}%{!?force_cpp:%{_target_cpu}-pld-linux-gcc -E}
+%else
+# x32 is a very special case
+%define                __newcc %{?force_cc}%{!?force_cc:x86_64-pld-linux-gnux32-gcc}
+%define                __newcxx %{?force_cxx}%{!?force_cxx:x86_64-pld-linux-gnux32-g++}
+%define                __newcpp %{?force_cpp}%{!?force_cpp:x86_64-pld-linux-gnux32-gcc -E}
+%endif
 
 %define                _rpmlibdir /usr/lib/rpm
 %define                _noautocompressdoc      RPM-GPG-KEY
This page took 0.356729 seconds and 4 git commands to generate.