diff options
author | Mikhail Kashkarov <m.kashkarov@partner.samsung.com> | 2019-07-25 14:54:04 +0300 |
---|---|---|
committer | Mikhail Kashkarov <m.kashkarov@partner.samsung.com> | 2019-07-25 18:19:47 +0300 |
commit | c31483214b77a41d8d07fa496083a8e055b7df91 (patch) | |
tree | b2e3e1b19c9ea6f60210b176678441975e194ac0 | |
parent | 330ddec752127e5e37378245a10d4f093e1893b5 (diff) | |
download | rpm-c31483214b77a41d8d07fa496083a8e055b7df91.tar.gz rpm-c31483214b77a41d8d07fa496083a8e055b7df91.tar.bz2 rpm-c31483214b77a41d8d07fa496083a8e055b7df91.zip |
Add support for strip (binutils) instead of default eu-strip (elfutils)
eu-strip doesn't support custom section removing other than .comment:
$ /usr/lib/rpm/find-debuginfo.sh --strip-option=--remove-section=.gnu.build.attributes ...
eu-strip: -R option supports only .comment section
find-debuginfo.sh selects strip/eu-strip based on:
if [ "$STRIP_DEFAULT_PACKAGE" != "binutils" ];
So nothing is changed without:
%define _enable_binutils_strip 1
%define _rpm_strip_option --remove-section=.gnu.build.attributes
Change-Id: Ie37c61c3ae2b91a37ab57c92b96e459bfed7a698
-rw-r--r-- | packaging/rpm-tizen_macros | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packaging/rpm-tizen_macros b/packaging/rpm-tizen_macros index e720c8fde..6820739ae 100644 --- a/packaging/rpm-tizen_macros +++ b/packaging/rpm-tizen_macros @@ -226,6 +226,7 @@ LDFLAGS="${LDFLAGS:-%{?global_LDFLAGS}}"; export LDFLAGS ; \ %%install\ LANG=C\ export LANG\ +%{?_enable_binutils_strip:export STRIP_DEFAULT_PACKAGE="binutils"} \ unset DISPLAY\ rm -rf %{?buildroot:%{buildroot}} \ mkdir -p %{?buildroot:%{buildroot}} \ |