From 44131482ad4e82fdb68d9be3049f72d88d138bcb Mon Sep 17 00:00:00 2001 From: Pablo Greco Date: Aug 08 2021 18:09:19 +0000 Subject: Fix armhfp build --- diff --git a/SPECS/rust.spec b/SPECS/rust.spec index beb136f..86253f2 100644 --- a/SPECS/rust.spec +++ b/SPECS/rust.spec @@ -530,6 +530,18 @@ find vendor -name .cargo-checksum.json \ # it's a shebang and make them executable. Then brp-mangle-shebangs gets upset... find -name '*.rs' -type f -perm /111 -exec chmod -v -x '{}' '+' +%ifarch %{arm} +if [ ! -e /usr/bin/armv7hl-redhat-linux-gnueabi-ar ];then + mkdir -p ar-bin + ln -s /usr/bin/ar ar-bin/armv7hl-redhat-linux-gnueabi-ar +%if 0%{?cmake_path:1} + %global cmake_path %{cmake_path}:$PWD/ar-bin +%else + %global cmake_path $PWD/ar-bin +%endif +fi +%endif + # Set up shared environment variables for build/install/check %global rust_env RUSTFLAGS="%{rustflags}" %if 0%{?cmake_path:1}