summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorwiz <wiz>2004-07-04 00:38:15 +0000
committerwiz <wiz>2004-07-04 00:38:15 +0000
commit07c15e5c38915dea861c180fd9e008141958ebaa (patch)
tree55404e7ab702dee5885f96dc2450c7d8824ffa69 /mk
parent08314d17ee4a30241b22e0deeb684aca64d2902c (diff)
downloadpkgsrc-07c15e5c38915dea861c180fd9e008141958ebaa.tar.gz
Re-add USE_PKGSRC_GCC, and document it should only be
used in /etc/mk.conf. Requested by Klaus Heinz.
Diffstat (limited to 'mk')
-rw-r--r--mk/compiler.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/mk/compiler.mk b/mk/compiler.mk
index e975facffe0..ed05b1347a0 100644
--- a/mk/compiler.mk
+++ b/mk/compiler.mk
@@ -1,4 +1,4 @@
-# $NetBSD: compiler.mk,v 1.33 2004/07/04 00:28:30 wiz Exp $
+# $NetBSD: compiler.mk,v 1.34 2004/07/04 00:38:15 wiz Exp $
#
# This Makefile fragment implements handling for supported C/C++/Fortran
# compilers.
@@ -35,7 +35,8 @@
#
# USE_PKGSRC_GCC
# Force using the appropriate version of GCC from pkgsrc based on
-# GCC_REQD instead of the native compiler.
+# GCC_REQD instead of the native compiler. Should only be set in
+# /etc/mk.conf.
#
# USE_GCC_SHLIB
# Indicates that a package uses GCC shared libraries, so we
@@ -81,6 +82,12 @@ USE_LANGUAGES?= c
# Default to using gcc.
PKGSRC_COMPILER?= gcc
+# For environments where there is an external gcc too, but pkgsrc
+# should use the pkgsrc one for consistency.
+.if defined(USE_PKGSRC_GCC)
+_USE_PKGSRC_GCC= yes
+.endif
+
_COMPILERS= gcc mipspro mipspro-ucode sunpro
_PSEUDO_COMPILERS= ccache distcc