diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2023-02-16 03:45:44 -0500 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2023-02-16 03:54:03 -0500 |
commit | d03d4f49bef52ea4562876316d494cbcc6b2f7f3 (patch) | |
tree | 690335bcc11193530723662ae047f31bba7993fa /games-strategy | |
parent | dev-util/maturin: add 1.0.0_beta2 unkeyworded, drop 1.0.0_beta1-r2 (diff) | |
download | gentoo-d03d4f49bef52ea4562876316d494cbcc6b2f7f3.tar.gz gentoo-d03d4f49bef52ea4562876316d494cbcc6b2f7f3.tar.bz2 gentoo-d03d4f49bef52ea4562876316d494cbcc6b2f7f3.zip |
games-strategy/endless-sky: hopefully fix tests without -flto
Upstream defaults to -flto, but we yank it to let users set as wanted.
Simplest seem to be to just let the libraries get used.
Closes: https://bugs.gentoo.org/894702
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-strategy')
-rw-r--r-- | games-strategy/endless-sky/endless-sky-0.9.16.1.ebuild | 1 | ||||
-rw-r--r-- | games-strategy/endless-sky/files/endless-sky-0.9.16.1-test-libs.patch | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/games-strategy/endless-sky/endless-sky-0.9.16.1.ebuild b/games-strategy/endless-sky/endless-sky-0.9.16.1.ebuild index c07e76bb4888..3d0b78c57dff 100644 --- a/games-strategy/endless-sky/endless-sky-0.9.16.1.ebuild +++ b/games-strategy/endless-sky/endless-sky-0.9.16.1.ebuild @@ -36,6 +36,7 @@ PATCHES=( "${FILESDIR}"/${PN}-0.9.14-no-games-path.patch "${FILESDIR}"/${PN}-0.9.14-dont-compress-man-page.patch "${FILESDIR}"/${PN}-0.9.16.1-respect-cflags.patch + "${FILESDIR}"/${PN}-0.9.16.1-test-libs.patch ) src_compile() { diff --git a/games-strategy/endless-sky/files/endless-sky-0.9.16.1-test-libs.patch b/games-strategy/endless-sky/files/endless-sky-0.9.16.1-test-libs.patch new file mode 100644 index 000000000000..31b27de1d569 --- /dev/null +++ b/games-strategy/endless-sky/files/endless-sky-0.9.16.1-test-libs.patch @@ -0,0 +1,10 @@ +Even if not actually used, ensure all symbols are available when linking +tests to handle cases where unused symbols were not optimized out. +https://bugs.gentoo.org/894702 +--- a/SConstruct ++++ b/SConstruct +@@ -172,4 +172,2 @@ + CPPPATH=(env.get('CPPPATH', []) + [pathjoin('tests', 'unit', 'include')]), +- # Do not link against the actual implementations of SDL, OpenGL, etc. +- LIBS=sys_libs, + # Pass the necessary link flags for a console program. |