diff options
author | Repository mirror & CI <repomirrorci@gentoo.org> | 2022-06-28 07:48:54 +0000 |
---|---|---|
committer | Repository mirror & CI <repomirrorci@gentoo.org> | 2022-06-28 07:48:54 +0000 |
commit | fb01ab6649e8a50c747109b780e1d98b9a7a7d8b (patch) | |
tree | 6a1dac43a547b8bcfc0f30de3bdd5e54c92b8e71 | |
parent | 2022-06-28 07:18:26 UTC (diff) | |
parent | flag-o-matic.eclass: add filter-lto function (diff) | |
download | gentoo-fb01ab6649e8a50c747109b780e1d98b9a7a7d8b.tar.gz gentoo-fb01ab6649e8a50c747109b780e1d98b9a7a7d8b.tar.bz2 gentoo-fb01ab6649e8a50c747109b780e1d98b9a7a7d8b.zip |
Merge updates from master
-rw-r--r-- | eclass/flag-o-matic.eclass | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index 50caa401bacf..0e15d7423547 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -218,6 +218,14 @@ filter-lfs-flags() { filter-flags -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_TIME_BITS=64 } +# @FUNCTION: filter-lto +# @DESCRIPTION: +# Remove flags that enable LTO and those that depend on it +filter-lto() { + [[ $# -ne 0 ]] && die "filter-lto takes no arguments" + filter-flags '-flto*' -fwhole-program-vtables '-fsanitize=cfi*' +} + # @FUNCTION: filter-ldflags # @USAGE: <flags> # @DESCRIPTION: |