Add support for strip (binutils) instead of default eu-strip (elfutils) 77/210877/3
authorMikhail Kashkarov <m.kashkarov@partner.samsung.com>
Thu, 25 Jul 2019 11:54:04 +0000 (14:54 +0300)
committerMikhail Kashkarov <m.kashkarov@partner.samsung.com>
Thu, 25 Jul 2019 15:19:47 +0000 (18:19 +0300)
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

packaging/rpm-tizen_macros

index e720c8f..6820739 100644 (file)
@@ -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}} \