summaryrefslogtreecommitdiff
path: root/mk/compiler.mk
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2009-05-30 18:16:26 +0000
committerjoerg <joerg@pkgsrc.org>2009-05-30 18:16:26 +0000
commit0418d3ee9c67fcf3d81a11d28719d72ccd7162c9 (patch)
treee575bcec3a723c7ca42a939c69573accc8770971 /mk/compiler.mk
parent87660c319b5764833300b3dfb5b2ef9e1e411ceb (diff)
downloadpkgsrc-0418d3ee9c67fcf3d81a11d28719d72ccd7162c9.tar.gz
Rename GCC_USE_SYMLINKS to COMPILER_USE_SYMLINKS, implement it for the
other compiler drivers and enable it by default. Saves at least a percent of build time even for trivial packages like lang/lua.
Diffstat (limited to 'mk/compiler.mk')
-rw-r--r--mk/compiler.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/mk/compiler.mk b/mk/compiler.mk
index 31b36be916d..f3e62573d27 100644
--- a/mk/compiler.mk
+++ b/mk/compiler.mk
@@ -1,4 +1,4 @@
-# $NetBSD: compiler.mk,v 1.68 2008/10/20 20:44:49 wiz Exp $
+# $NetBSD: compiler.mk,v 1.69 2009/05/30 18:16:26 joerg Exp $
#
# This Makefile fragment implements handling for supported C/C++/Fortran
# compilers.
@@ -36,6 +36,12 @@
# Force using the appropriate version of GCC from pkgsrc based on
# GCC_REQD instead of the native compiler.
#
+# This should be disabled only for debugging.
+#
+# COMPILER_USE_SYMLINKS
+# If set to yes, use symlinks for the compiler drivers, otherwise
+# shell scripts are created. The default is yes.
+#
# The following variables may be set by a package:
#
# GCC_REQD
@@ -72,7 +78,7 @@
BSD_COMPILER_MK= defined
_VARGROUPS+= compiler
-_USER_VARS.compiler= PKGSRC_COMPILER USE_PKGSRC_GCC ABI
+_USER_VARS.compiler= PKGSRC_COMPILER USE_PKGSRC_GCC ABI COMPILER_USE_SYMLINKS
_PKG_VARS.compiler= USE_LANGUAGES GCC_REQD NOT_FOR_COMPILER ONLY_FOR_COMPILER
_SYS_VARS.compiler= CC_VERSION
@@ -86,6 +92,8 @@ USE_LANGUAGES?= c
USE_LANGUAGES+= c
.endif
+COMPILER_USE_SYMLINKS?= yes
+
# For environments where there is an external gcc too, but pkgsrc
# should use the pkgsrc one for consistency.
#