commit:     e2df525803564e007fe64b53fc2a0f0420737f44
Author:     Christopher Byrne <salah.coronya <AT> gmail <DOT> com>
AuthorDate: Tue Jan 13 01:00:18 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jan 14 13:45:16 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2df5258

app-emulation/libguestfs: Respect LDFLAGS in Perl module

Closes: https://bugs.gentoo.org/966948
Signed-off-by: Christopher Byrne <salah.coronya <AT> 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 <AT> gentoo.org>

 .../libguestfs-1.56.2-respect-LDFLAGS-in-perl-module.patch  | 13 +++++++++++++
 app-emulation/libguestfs/libguestfs-1.56.2.ebuild           |  1 +
 2 files changed, 14 insertions(+)

diff --git 
a/app-emulation/libguestfs/files/libguestfs-1.56.2-respect-LDFLAGS-in-perl-module.patch
 
b/app-emulation/libguestfs/files/libguestfs-1.56.2-respect-LDFLAGS-in-perl-module.patch
new file mode 100644
index 000000000000..d1580c1b938d
--- /dev/null
+++ 
b/app-emulation/libguestfs/files/libguestfs-1.56.2-respect-LDFLAGS-in-perl-module.patch
@@ -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',
+     ],

diff --git a/app-emulation/libguestfs/libguestfs-1.56.2.ebuild 
b/app-emulation/libguestfs/libguestfs-1.56.2.ebuild
index 131ea9697454..4d96f04c8743 100644
--- a/app-emulation/libguestfs/libguestfs-1.56.2.ebuild
+++ b/app-emulation/libguestfs/libguestfs-1.56.2.ebuild
@@ -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() {

Reply via email to