SHA256
3
0
forked from pool/elfutils

Accepting request 834600 from home:Guillaume_G:branches:Base:System

- Disable LTO again - boo#1138796
  Adding -flto-partition=none and -Wno-error=stack-usage were
  not enough: 
    [  123s] libasm-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libasm.a
    [  123s] libdw-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libdw.a
    [  123s] libelf-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libelf.a
    [  123s] This archive does not contain a non-empty .text section.  The archive was not
    [  123s] created with -ffat-lto-objects option.
  And adding -ffat-lto-objects breaks run-show-die-info.sh test.

OBS-URL: https://build.opensuse.org/request/show/834600
OBS-URL: https://build.opensuse.org/package/show/Base:System/elfutils?expand=0&rev=159
This commit is contained in:
Richard Biener 2020-09-15 12:22:08 +00:00 committed by Git OBS Bridge
parent 2fd880f1c7
commit 94fdbb55f3
2 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Tue Sep 15 11:50:27 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Disable LTO again - boo#1138796
Adding -flto-partition=none and -Wno-error=stack-usage were
not enough:
[ 123s] libasm-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libasm.a
[ 123s] libdw-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libdw.a
[ 123s] libelf-devel.x86_64: E: lto-no-text-in-archive (Badness: 10000) /usr/lib64/libelf.a
[ 123s] This archive does not contain a non-empty .text section. The archive was not
[ 123s] created with -ffat-lto-objects option.
And adding -ffat-lto-objects breaks run-show-die-info.sh test.
-------------------------------------------------------------------
Tue Sep 8 15:18:57 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>

View File

@ -106,7 +106,7 @@ applications that require libdw.
%autosetup -p1
%build
%global _lto_cflags %{_lto_cflags} -flto-partition=none -Wno-error=stack-usage=
%global _lto_cflags %{nil}
# Change DATE/TIME macros to use last change time of elfutils.changes
# See http://lists.opensuse.org/opensuse-factory/2011-05/msg00304.html
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"