From 8cb066886f2ec1754651e4b71afd053e611d0520 Mon Sep 17 00:00:00 2001 From: Slava Barinov Date: Fri, 31 Jan 2020 09:54:10 +0300 Subject: [PATCH] REMOVE ME: turn off crti/crtn debug section Change-Id: Id3c7539d9cbc4316c496c091c56d4337c4d1027d Signed-off-by: Slava Barinov --- packaging/glibc.spec | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packaging/glibc.spec b/packaging/glibc.spec index fd64f33..37ac125 100644 --- a/packaging/glibc.spec +++ b/packaging/glibc.spec @@ -444,6 +444,17 @@ touch %{buildroot}%{_libdir}/gconv/gconv-modules.cache # Install base glibc make %{?_smp_mflags} install_root=%{buildroot} install -C cc-base +####################################################################### +### +### REMOVE ME #### REMOVE ME #### REMOVE ME #### REMOVE ME ### +### +####################################################################### +# Strip out debug sections from crti.o and crtn.o to compensate bug of +# binutils < 2.31.2 +find %{buildroot} \( -name 'crti.o' -o -name 'crtn.o' \) -exec strip {} \; +####################################################################### + + install_optimized_variant() { local dirname="$1"; shift local subdir="$1"; shift -- 2.7.4