summaryrefslogtreecommitdiff
path: root/mk/compiler.mk
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2004-07-04 00:38:15 +0000
committerwiz <wiz@pkgsrc.org>2004-07-04 00:38:15 +0000
commit8ff007ed51d1286c7c74b4d42d9c06bca11fe88b (patch)
tree55404e7ab702dee5885f96dc2450c7d8824ffa69 /mk/compiler.mk
parent592ae724f498fa1da6bf7cd814c99036beb25293 (diff)
downloadpkgsrc-8ff007ed51d1286c7c74b4d42d9c06bca11fe88b.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/compiler.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