summaryrefslogtreecommitdiff
path: root/lang/perl5/patches
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-01-30 22:35:57 +0000
committerjlam <jlam@pkgsrc.org>2002-01-30 22:35:57 +0000
commitacef69cb6b5f623ec7b9a0cdef81c9b49f7fadfe (patch)
tree86cc3f83f4f60cf69d49e0d6e907c12597bb2504 /lang/perl5/patches
parent01c10a95a248e3bc706d2ad790d06938f2a59003 (diff)
downloadpkgsrc-acef69cb6b5f623ec7b9a0cdef81c9b49f7fadfe.tar.gz
Fix long-standing bug where -R${PREFIX}/lib wasn't being recorded in the
LDDLFLAGS because ${PREFIX} is not defined for the sub-scripts that are executed by the Configure script. This resulted in -R/lib.
Diffstat (limited to 'lang/perl5/patches')
-rw-r--r--lang/perl5/patches/patch-ab13
1 files changed, 9 insertions, 4 deletions
diff --git a/lang/perl5/patches/patch-ab b/lang/perl5/patches/patch-ab
index 9b3cc22037f..46b5efca64d 100644
--- a/lang/perl5/patches/patch-ab
+++ b/lang/perl5/patches/patch-ab
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.10 2001/10/01 07:05:11 jlam Exp $
+$NetBSD: patch-ab,v 1.11 2002/01/30 22:35:58 jlam Exp $
--- hints/netbsd.sh.orig Thu Feb 22 21:57:55 2001
-+++ hints/netbsd.sh
-@@ -21,12 +21,20 @@
++++ hints/netbsd.sh Wed Jan 30 17:02:39 2002
+@@ -21,16 +21,24 @@
if [ -f /usr/libexec/ld.elf_so ]; then
d_dlopen=$define
d_dlerror=$define
@@ -11,7 +11,7 @@ $NetBSD: patch-ab,v 1.10 2001/10/01 07:05:11 jlam Exp $
+ # needs __eh_alloc, __pure_virtual, and others.
+ # XXX This should be obsoleted by gcc-3.0.
+ ccdlflags="-Wl,-whole-archive -lgcc -Wl,-no-whole-archive \
-+ -Wl,-E -Wl,-R${PREFIX}/lib $ccdlflags"
++ -Wl,-E -Wl,-R$prefix/lib $ccdlflags"
cccdlflags="-DPIC -fPIC $cccdlflags"
lddlflags="--whole-archive -shared $lddlflags"
elif [ "`uname -m`" = "pmax" ]; then
@@ -25,6 +25,11 @@ $NetBSD: patch-ab,v 1.10 2001/10/01 07:05:11 jlam Exp $
elif [ -f /usr/libexec/ld.so ]; then
d_dlopen=$define
d_dlerror=$define
+- ccdlflags="-Wl,-R${PREFIX}/lib $ccdlflags"
++ ccdlflags="-Wl,-R$prefix/lib $ccdlflags"
+ # we use -fPIC here because -fpic is *NOT* enough for some of the
+ # extensions like Tk on some netbsd platforms (the sparc is one)
+ cccdlflags="-DPIC -fPIC $cccdlflags"
@@ -59,12 +67,13 @@
d_setruid="$undef"