summaryrefslogtreecommitdiff
path: root/net/p5-Net-LibIDN/patches/patch-aa
blob: 5dd08085674e493cdd5e32a9a9fd94c60f1c298b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-aa,v 1.3 2010/09/15 10:32:52 obache Exp $

--- 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";