diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-12-02 23:36:47 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-12-02 23:36:47 +0000 |
commit | 4b8c5a30a403ee0d95e641eb05cd9cd9b8fede65 (patch) | |
tree | c91439866ae85ce616b5f627db3fe129719242b6 /share/mk/bsd.port.mk | |
parent | 67c920cc03778e082daa2c5251834d251886126e (diff) |
do not destroy /dev/null on alpha
Diffstat (limited to 'share/mk/bsd.port.mk')
-rw-r--r-- | share/mk/bsd.port.mk | 6 |
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 \ |