summaryrefslogtreecommitdiff
path: root/mk/platform
diff options
context:
space:
mode:
authortron <tron>2005-03-22 19:15:04 +0000
committertron <tron>2005-03-22 19:15:04 +0000
commita2ad5df920bbf261cfbd0c13c14c66ec5fdbec64 (patch)
tree112d5e500467ba77e15baff1ac419a03aa53be68 /mk/platform
parent946107d239dbcbcd186f75590e3e2ffae801203a (diff)
downloadpkgsrc-a2ad5df920bbf261cfbd0c13c14c66ec5fdbec64.tar.gz
Several NetBSD ports (e.g. sparc64) don't have "/sbin/ldconfig". So check
whether it exists and use "true" otherwise.
Diffstat (limited to 'mk/platform')
-rw-r--r--mk/platform/NetBSD.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/platform/NetBSD.mk b/mk/platform/NetBSD.mk
index 3fbf4549ccc..a5cf08857c1 100644
--- a/mk/platform/NetBSD.mk
+++ b/mk/platform/NetBSD.mk
@@ -1,4 +1,4 @@
-# $NetBSD: NetBSD.mk,v 1.9 2005/03/22 15:40:06 tv Exp $
+# $NetBSD: NetBSD.mk,v 1.10 2005/03/22 19:15:04 tron Exp $
#
# Variable definitions for the NetBSD operating system.
@@ -39,7 +39,11 @@ GZIP_CMD?= /usr/bin/gzip -nf ${GZIP}
HEAD?= /usr/bin/head
HOSTNAME_CMD?= /bin/hostname
ID?= /usr/bin/id
+.if exists(/sbin/ldconfig)
LDCONFIG?= /sbin/ldconfig
+.else
+LDCONFIG?= true
+.endif
LN?= /bin/ln
LS?= /bin/ls
M4?= /usr/bin/m4