mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-util/sysprof-capture: use dot-a.eclass for LTO
This means that USE=static-libs doesn't produce a "broken" library when built w/ LTO. Bug: https://bugs.gentoo.org/818097 Bug: https://bugs.gentoo.org/889004 Bug: https://bugs.gentoo.org/927994 Bug: https://bugs.gentoo.org/939515 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
GNOME_ORG_MODULE="sysprof"
|
||||
|
||||
inherit gnome.org meson-multilib systemd
|
||||
inherit dot-a gnome.org meson-multilib systemd
|
||||
|
||||
DESCRIPTION="Static library for sysprof capture data generation"
|
||||
HOMEPAGE="http://sysprof.com/"
|
||||
@@ -21,6 +21,11 @@ BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
lto-guarantee-fat
|
||||
meson-multilib_src_configure
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=(
|
||||
-Dgtk=false
|
||||
@@ -38,3 +43,8 @@ multilib_src_configure() {
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
strip-lto-bytecode
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
GNOME_ORG_MODULE="sysprof"
|
||||
|
||||
inherit gnome.org meson-multilib systemd
|
||||
inherit dot-a gnome.org meson-multilib systemd
|
||||
|
||||
DESCRIPTION="Static library for sysprof capture data generation"
|
||||
HOMEPAGE="http://sysprof.com/"
|
||||
@@ -21,6 +21,11 @@ BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
lto-guarantee-fat
|
||||
meson-multilib_src_configure
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=(
|
||||
-Dgtk=false
|
||||
@@ -36,3 +41,8 @@ multilib_src_configure() {
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
strip-lto-bytecode
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
EAPI=8
|
||||
GNOME_ORG_MODULE="sysprof"
|
||||
|
||||
inherit gnome.org meson-multilib systemd
|
||||
inherit dot-a gnome.org meson-multilib systemd
|
||||
|
||||
DESCRIPTION="Static library for sysprof capture data generation"
|
||||
HOMEPAGE="http://sysprof.com/"
|
||||
@@ -21,6 +21,11 @@ BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
lto-guarantee-fat
|
||||
meson-multilib_src_configure
|
||||
}
|
||||
|
||||
multilib_src_configure() {
|
||||
local emesonargs=(
|
||||
-Dgtk=false
|
||||
@@ -36,3 +41,8 @@ multilib_src_configure() {
|
||||
)
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
multilib_src_install_all() {
|
||||
einstalldocs
|
||||
strip-lto-bytecode
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user