Files
gentoo/dev-perl/Image-Scale/files/Image-Scale-0.140.0-link-math.patch
Alfred Wingate 14b194ed48 dev-perl/Image-Scale: link math explicitly
Used math functions without to the math library.

Do some fixups while revbumping.

Closes: https://bugs.gentoo.org/969792
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/45698
Closes: https://github.com/gentoo/gentoo/pull/45698
Signed-off-by: Sam James <sam@gentoo.org>
2026-02-08 23:30:00 +00:00

19 lines
401 B
Diff

https://bugs.gentoo.org/969792
diff --git a/Makefile.PL b/Makefile.PL
index ff8f585..67e7371 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -74,6 +74,10 @@ if ( $^O =~ /Win32/i ) {
push @check, '../lpng143';
push @check, '../giflib-4.1.6/lib';
}
+else {
+ # Needed to link math functions on POSIX
+ push @LIBS, '-lm';
+}
# Look for libjpeg
for my $incdir ( $jpeg_inc, @check ) {