From ff344f4f1ca7b9ac7b69a2ba61f402cb02f16940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jani=20V=C3=A4limaa?= Date: Sun, 24 Mar 2024 08:51:59 +0200 Subject: configure: force armv7hl target arch when building for armv7hl with armv8l/aarch64 host machine --- NEWS | 1 + configure.ac | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/NEWS b/NEWS index 93e36bd..7d50160 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,4 @@ +- configure: force armv7hl target arch when building for armv7hl with armv8l/aarch64 host machine - 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) diff --git a/configure.ac b/configure.ac index b7c697c..d1638ed 100644 --- a/configure.ac +++ b/configure.ac @@ -103,6 +103,13 @@ case "${target_cpu}" in CANONTARGETGNU=-gnueabi ARMV7CANONTARGETCPU="armv7hl" ARMV8CANONTARGETCPU="armv7hl" + ;; + armv8*) + RPMALLARCH="armv7hl" + CANONTARGETCPU=armv7hl + CANONTARGETGNU=-gnueabi + ARMV7CANONTARGETCPU="armv7hl" + ARMV8CANONTARGETCPU="armv7hl" esac RPMALLARCH="${RPMALLARCH} noarch" AC_SUBST(RPMALLARCH) -- cgit v1.2.1