aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJani Välimaa <wally@mageia.org>2024-03-24 08:50:27 +0200
committerJani Välimaa <wally@mageia.org>2024-03-24 08:50:27 +0200
commit2d306f2d2749e0a4fe8210bce03e68399f13382d (patch)
treeef766892822063cd6a1271bac631449b38f1b9e6
parent16d740d1b94a74b750d00fc907c16cda279e51c8 (diff)
downloadrpm-setup-2d306f2d2749e0a4fe8210bce03e68399f13382d.tar
rpm-setup-2d306f2d2749e0a4fe8210bce03e68399f13382d.tar.gz
rpm-setup-2d306f2d2749e0a4fe8210bce03e68399f13382d.tar.bz2
rpm-setup-2d306f2d2749e0a4fe8210bce03e68399f13382d.tar.xz
rpm-setup-2d306f2d2749e0a4fe8210bce03e68399f13382d.zip
macros: make _host_cpu identical with _target_cpu
ATM rpm uses real build host's arch and it can be different what we really want (armv8l vs. armv7hl)
-rw-r--r--NEWS3
-rw-r--r--macros.in1
2 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index e5e977b..93e36bd 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- macros: make _host_cpu identical with _target_cpu as ATM rpm uses real build
+ host's arch and it can be different what we really want (armv8l vs. armv7hl)
+
Version 2.75 - 23 March 2024, by Jani Välimaa
- Makefile: fix brp-mangle-shebangs install
- rpmrc: use -mtune=generic-armv7-a with armv7hl
diff --git a/macros.in b/macros.in
index 91f6e08..bea66b9 100644
--- a/macros.in
+++ b/macros.in
@@ -16,6 +16,7 @@
%_gnu @CANONTARGETGNU@
%_target_platform %{_target_cpu}-%{_real_vendor}-%{_target_os}%{?_gnu}
+%_host_cpu @CANONTARGETCPU@
%_host %{_host_cpu}-%{_real_vendor}-%{_host_os}%{?_gnu}