summaryrefslogtreecommitdiff
path: root/mk/bsd.prefs.mk
diff options
context:
space:
mode:
authorgrant <grant>2003-09-24 12:22:03 +0000
committergrant <grant>2003-09-24 12:22:03 +0000
commit2177ebc7091b5b231af0b613a9cc4f78518df808 (patch)
tree99ddce2750caedd6be2d3ff6627986aa0f032363 /mk/bsd.prefs.mk
parentcd1863dfbfa2199a182b0e752647c4cec5b861ab (diff)
downloadpkgsrc-2177ebc7091b5b231af0b613a9cc4f78518df808.tar.gz
make CC_VERSION available to packages by including bsd.prefs.mk.
it is of the form 'gcc-<version>' if gcc is being used, or empty otherwise (for now). requested by tron.
Diffstat (limited to 'mk/bsd.prefs.mk')
-rw-r--r--mk/bsd.prefs.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index d7567c555a4..3062ef236a4 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.127 2003/09/17 05:14:40 itojun Exp $
+# $NetBSD: bsd.prefs.mk,v 1.128 2003/09/24 12:22:04 grant Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -409,4 +409,10 @@ WRKDIR?= ${BUILD_DIR}/${WRKDIR_BASENAME}
#
WRKLOG?= ${WRKDIR}/.work.log
+.if exists(${.CURDIR}/../../mk/compiler.mk)
+. include "../../mk/compiler.mk"
+.elif exists(${.CURDIR}/../mk/compiler.mk)
+. include "../mk/compiler.mk"
+.endif
+
.endif # BSD_PKG_MK