summaryrefslogtreecommitdiff
path: root/databases/p5-DBD-mysql/patches/patch-aa
blob: a199e54462ca013f9c251b8eb9001e28b11432e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-aa,v 1.3 2002/04/14 14:11:19 veego Exp $

--- lib/DBD/mysql/Install.pm-orig	Sat Apr  7 14:31:06 2001
+++ lib/DBD/mysql/Install.pm	Sun Apr 14 16:04:24 2002
@@ -407,6 +407,9 @@
 	$Config::Config{'osname'} =~ /^sco\d+/) {
 	# Some extra libraries need added for SCO and Unixware
 	$sysliblist .= " -lc";
+    } elsif ($Config::Config{'osname'} eq 'netbsd') {
+	# We need to link with -Wl,-R if we're on NetBSD
+	$linkwith = "-Wl,-R$libdir";
     } elsif ($Config::Config{'osname'} eq 'solaris') {
 	# We need to link with -R if we're on Solaris.......Brain-damaged....
 	$linkwith = "-R$libdir";