summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/bsd.pkg.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index b001eb7f652..4674075aa74 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1283 2003/09/14 15:32:30 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1284 2003/09/14 16:41:30 danw Exp $
#
# This file is in the public domain.
#
@@ -2761,8 +2761,11 @@ do-shlib-handling:
next \
} \
/.*\/lib[^\/]+\.so$$/ { \
- libtool_release($$0); \
lines[NR] = $$0; \
+ if (system("${TEST} -e ${PREFIX}/" $$0) == 0) { \
+ next; \
+ } \
+ libtool_release($$0); \
links[linkc++] = $$0; \
if (sub("-[^-]+\.so$$", "\.so")) { \
links[linkc++] = $$0; \