commit: e82cd942598f18e4a8df26c2b5b1d61c7880fc59
Author: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
AuthorDate: Sun May 11 06:39:43 2025 +0000
Commit: Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Sun May 11 06:40:33 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e82cd942
media-libs/libraw: make sure elibtoolize is applied
Needed to e.g. pass LTO warning flags through to the linker. Also needed
to pass through --as-needed correctly to the linker, which has the
practical effect of pruning a link to some unused lcms plugins.
lcms provides its plugins in the main .pc file by design to "simplify
usage", if configuring to build the plugin at all, and expects
--as-needed to strip those out if you don't call `cmsPlugin`. But that
relies on libtool doing its job...
(We unconditionally package the plugins, so this is just an
optimization.)
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>
media-libs/libraw/libraw-0.21.2.ebuild | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/media-libs/libraw/libraw-0.21.2.ebuild
b/media-libs/libraw/libraw-0.21.2.ebuild
index b45f1cb997a4..b0f49bc3ffe5 100644
--- a/media-libs/libraw/libraw-0.21.2.ebuild
+++ b/media-libs/libraw/libraw-0.21.2.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit flag-o-matic multilib-minimal toolchain-funcs
+inherit flag-o-matic libtool multilib-minimal toolchain-funcs
MY_PN=LibRaw
MY_PV="${PV/_b/-B}"
@@ -41,6 +41,7 @@ pkg_setup() {
src_prepare() {
default
+ elibtoolize
if tc-is-clang && use openmp ; then
append-libs omp