diff options
author | grant <grant@pkgsrc.org> | 2003-09-24 12:22:03 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2003-09-24 12:22:03 +0000 |
commit | 59009f250a5018629023a4dc2a9bb8f71ef2e189 (patch) | |
tree | 99ddce2750caedd6be2d3ff6627986aa0f032363 /mk/bsd.prefs.mk | |
parent | 58da0b14a8be65d1dbfe5c08922997559b710512 (diff) | |
download | pkgsrc-59009f250a5018629023a4dc2a9bb8f71ef2e189.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.mk | 8 |
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 |