summaryrefslogtreecommitdiff
path: root/mk/buildlink3/bsd.buildlink3.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/buildlink3/bsd.buildlink3.mk')
-rw-r--r--mk/buildlink3/bsd.buildlink3.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/buildlink3/bsd.buildlink3.mk b/mk/buildlink3/bsd.buildlink3.mk
index 48bdbcdfb07..2c2515d3927 100644
--- a/mk/buildlink3/bsd.buildlink3.mk
+++ b/mk/buildlink3/bsd.buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.buildlink3.mk,v 1.214 2012/05/24 07:27:27 sbd Exp $
+# $NetBSD: bsd.buildlink3.mk,v 1.215 2012/09/16 07:37:10 sbd Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -354,6 +354,12 @@ BUILDLINK_PREFIX.${_pkg_}= BUILDLINK_PREFIX.${_pkg_}_not_found
MAKEVARS+= BUILDLINK_PREFIX.${_pkg_}
. endif
+. if empty(BUILDLINK_PREFIX.${_pkg_}:N/usr:N/boot/common:N/)
+BUILDLINK_DIR.${_pkg_}= ${BUILDLINK_PREFIX.${_pkg_}}
+. else
+BUILDLINK_DIR.${_pkg_}= ${BUILDLINK_DIR}
+. endif
+
BUILDLINK_AUTO_VARS.${_pkg_}?= yes
BUILDLINK_CPPFLAGS.${_pkg_}?= # empty
BUILDLINK_LDFLAGS.${_pkg_}?= # empty