34 lines
1011 B
Diff
34 lines
1011 B
Diff
|
From b486af844498013073000808890fb19917f00823 Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
||
|
Date: Wed, 17 Jul 2013 10:43:28 +0200
|
||
|
Subject: [PATCH] Link PNG test to zlib
|
||
|
MIME-Version: 1.0
|
||
|
Content-Type: text/plain; charset=UTF-8
|
||
|
Content-Transfer-Encoding: 8bit
|
||
|
|
||
|
<https://rt.cpan.org/Public/Bug/Display.html?id=86988>.
|
||
|
|
||
|
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
||
|
---
|
||
|
PNG/Makefile.PL | 3 ++-
|
||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/PNG/Makefile.PL b/PNG/Makefile.PL
|
||
|
index dfb40d4..fe6c222 100755
|
||
|
--- a/PNG/Makefile.PL
|
||
|
+++ b/PNG/Makefile.PL
|
||
|
@@ -25,8 +25,9 @@ if ($? == 0) {
|
||
|
} else {
|
||
|
warn "'pkg-config libpng' failed, continue with fallback values for cflags and libs...\n";
|
||
|
$libpng_cflags = '-I/usr/local/include';
|
||
|
- $libpng_libs = '-lpng -lz -lm';
|
||
|
+ $libpng_libs = '-lpng -lm';
|
||
|
}
|
||
|
+$libpng_libs .= ' -lz';
|
||
|
|
||
|
if ($Tk::MMtry::VERSION ge '4.007' &&
|
||
|
try_run("config/has_png.c",[$libpng_cflags],[$libpng_libs]))
|
||
|
--
|
||
|
1.8.1.4
|
||
|
|