app-emulation/libguestfs: Respect LDFLAGS in Perl module

Closes: https://bugs.gentoo.org/966948
Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/45353
Closes: https://github.com/gentoo/gentoo/pull/45353
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Christopher Byrne
2026-01-12 19:00:18 -06:00
committed by Sam James
parent 683a12b88a
commit e2df525803
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/perl/Build.PL.in b/perl/Build.PL.in
index abec96591..7da7606df 100755
--- a/perl/Build.PL.in
+++ b/perl/Build.PL.in
@@ -66,7 +66,7 @@ my $build = Module::Build->new (
],
extra_linker_flags => [
'-DGUESTFS_PRIVATE=1',
- split (' ', '@CFLAGS@'),
+ split (' ', '@LDFLAGS@'),
'-L@top_builddir@/lib/.libs',
'-lguestfs',
],

View File

@@ -105,6 +105,7 @@ BDEPEND="
PATCHES=(
"${FILESDIR}/${PN}-1.52.1-disable-obsolete-lvmetad-in-tests.patch"
"${FILESDIR}/${PN}-1.56.2-respect-LDFLAGS-in-perl-module.patch"
)
src_prepare() {