pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Re-add USE_PKGSRC_GCC, and document it should only be
details: https://anonhg.NetBSD.org/pkgsrc/rev/c18ae1f82ec4
branches: trunk
changeset: 477506:c18ae1f82ec4
user: wiz <wiz%pkgsrc.org@localhost>
date: Sun Jul 04 00:38:15 2004 +0000
description:
Re-add USE_PKGSRC_GCC, and document it should only be
used in /etc/mk.conf. Requested by Klaus Heinz.
diffstat:
mk/compiler.mk | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r 32df78b9bdd2 -r c18ae1f82ec4 mk/compiler.mk
--- a/mk/compiler.mk Sun Jul 04 00:28:30 2004 +0000
+++ b/mk/compiler.mk Sun Jul 04 00:38:15 2004 +0000
@@ -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 @@
# 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
Home |
Main Index |
Thread Index |
Old Index