summaryrefslogtreecommitdiff
path: root/hints/netbsd.sh
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-04-26 20:04:44 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-04-26 20:04:44 +0000
commitb9685307624b4bf072ff40aa0bbc42ae36e58adf (patch)
tree9d17f0efc09a17aac32189b803a0b746c0f88356 /hints/netbsd.sh
parent639c2fabcd1be25c3b8ad244d49df500e25a2f60 (diff)
downloadperl-b9685307624b4bf072ff40aa0bbc42ae36e58adf.tar.gz
NetBSD: if the /usr/pkg/lib is there, the linker wants
to know about it always (not just when using the pth). p4raw-id: //depot/perl@16197
Diffstat (limited to 'hints/netbsd.sh')
-rw-r--r--hints/netbsd.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/hints/netbsd.sh b/hints/netbsd.sh
index f41a5b8f6d..6a2ff11dc7 100644
--- a/hints/netbsd.sh
+++ b/hints/netbsd.sh
@@ -88,9 +88,6 @@ $define|true|[yY]*)
if pkg_info -qe pth; then
# Add -lpthread.
libswanted="$libswanted pthread"
- # -R so that we find the libpthread.so from /usr/pkg/lib
- # during Configure and build.
- ldflags="-R/usr/pkg/lib $ldflags"
# There is no libc_r as of NetBSD 1.5.2, so no c -> c_r.
else
echo "$0: You need to install the GNU pth. Aborting." >&4
@@ -101,6 +98,9 @@ esac
EOCBU
# Recognize the NetBSD packages collection.
-# GDBM might be here.
-test -d /usr/pkg/lib && loclibpth="$loclibpth /usr/pkg/lib"
+# GDBM might be here, pth might be there.
+if test -d /usr/pkg/lib; then
+ loclibpth="$loclibpth /usr/pkg/lib"
+ ldflags="$ldflags -R/usr/pkg/lib"
+fi
test -d /usr/pkg/include && locincpth="$locincpth /usr/pkg/include"