summaryrefslogtreecommitdiff
path: root/net/p5-Net-LibIDN/patches/patch-aa
blob: 906b5f15688171ff05bfc3b4f0e2dfe8ab985ae1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- Makefile.PL.orig	2009-02-26 12:09:45.000000000 +0000
+++ Makefile.PL	2009-02-28 00:05:41.000000000 +0000
@@ -47,15 +47,10 @@
 		"disable-tld" => \$disable_tld
 	);
 
-	if ($libdir)
-	{
-		$Params{LIBS} = "-L$libdir -lidn";
-	}
-	else
-	{
-		$Params{LIBS} = $Config{ldflags} . ' -lidn';
-	}
-
+	$Params{LIBS} = $Config{ldflags};
+	$Params{LIBS} .= " -L$libdir" if ($libdir);
+	$Params{LIBS} .= " -lidn";
+	
 	if ($incdir)
 	{
 		$Params{INC} = "-I$incdir";