summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.port.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk
index 676190d8305..274787fbc62 100644
--- a/share/mk/bsd.port.mk
+++ b/share/mk/bsd.port.mk
@@ -1,6 +1,6 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4
-# $OpenBSD: bsd.port.mk,v 1.16 1997/12/02 21:58:12 niklas Exp $
+# $OpenBSD: bsd.port.mk,v 1.17 1997/12/02 23:36:46 niklas Exp $
# $NetBSD: $
#
# bsd.port.mk - 940820 Jordan K. Hubbard.
@@ -1588,7 +1588,8 @@ lib-depends:
else \
target=${DEPENDS_TARGET}; \
fi; \
- if ${LD} -r -o /dev/null -l$$lib; then \
+ tmp=`mktemp /tmp/bpmXXXXXXXXXX`; \
+ if ${LD} -r -o $$tmp -l$$lib; then \
${ECHO_MSG} "===> ${PKGNAME} depends on library: $$lib - found"; \
else \
${ECHO_MSG} "===> ${PKGNAME} depends on library: $$lib - not found"; \
@@ -1600,6 +1601,7 @@ lib-depends:
${ECHO_MSG} "===> Returning to build of ${PKGNAME}"; \
fi; \
fi; \
+ ${RM} -f $$tmp; \
done
.else
@for i in ${LIB_DEPENDS}; do \