diff options
author | Mike Gilbert <floppym@gentoo.org> | 2018-12-13 12:11:37 -0500 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2018-12-13 12:12:24 -0500 |
commit | 0f5be533cba84cd5f5eeedb47ac88aea8640fef6 (patch) | |
tree | 245af2d5f9480adf4afa8e1fd7849c818127c9f3 /dev-util/meson/meson-0.49.0.ebuild | |
parent | net-analyzer/icinga2: 2.10.2 stable amd64 and x86 with some cleanup (diff) | |
download | gentoo-0f5be533cba84cd5f5eeedb47ac88aea8640fef6.tar.gz gentoo-0f5be533cba84cd5f5eeedb47ac88aea8640fef6.tar.bz2 gentoo-0f5be533cba84cd5f5eeedb47ac88aea8640fef6.zip |
dev-util/meson: add workaround for test_static_library_lto
Closes: https://bugs.gentoo.org/672706
Package-Manager: Portage-2.3.52_p8, Repoman-2.3.12_p20
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'dev-util/meson/meson-0.49.0.ebuild')
-rw-r--r-- | dev-util/meson/meson-0.49.0.ebuild | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/dev-util/meson/meson-0.49.0.ebuild b/dev-util/meson/meson-0.49.0.ebuild index 9605fa9af90c..5e725b324a15 100644 --- a/dev-util/meson/meson-0.49.0.ebuild +++ b/dev-util/meson/meson-0.49.0.ebuild @@ -12,7 +12,7 @@ else KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x64-macos ~x64-solaris" fi -inherit distutils-r1 +inherit distutils-r1 toolchain-funcs DESCRIPTION="Open source build system" HOMEPAGE="http://mesonbuild.com/" @@ -32,6 +32,16 @@ python_prepare_all() { distutils-r1_python_prepare_all } +src_test() { + if tc-is-gcc; then + # LTO fails for static libs because the bfd plugin in missing. + # Remove this workaround after sys-devel/gcc-config-2.0 is stable. + # https://bugs.gentoo.org/672706 + tc-getPROG AR gcc-ar >/dev/null + fi + distutils-r1_src_test +} + python_test() { ( # test_meson_installed |