From 6f0de73419fc5a0ef5cca039734ce894ac10b0f8 Mon Sep 17 00:00:00 2001 From: Roy Rankin Date: Apr 28 2020 07:41:39 +0000 Subject: don't try to strip .a files --- diff --git a/sdcc.spec b/sdcc.spec index 0cee1eb..962ff3e 100644 --- a/sdcc.spec +++ b/sdcc.spec @@ -45,12 +45,15 @@ if you want to modify the C library or as reference of how it works. %prep %setup -q -n sdcc-%{version} #%setup -q -n sdcc -find -name '*.{c,h,cc}' -exec chmod -x '{}' \; +find -name '*.{c,h,cc}' -a -perm -a=x -exec chmod -a=x '{}' \; %patch1 -p1 %patch2 -p1 # Disable brp-strip-static-archive for now because it errors trying to # strip foreign binaries. -%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's#/usr/lib/rpm.*/brp-strip-static-archive .*##g') +echo '%{__os_install_post}' +%global __os_install_post %(echo '%{__os_install_post}' | + sed -e 's#/usr/lib/rpm.*/brp-strip-static-archive .*##g' | + sed -e 's#/usr/lib/rpm.*/brp-strip-lto .*##g') %build