summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorsalo <salo>2003-07-09 08:22:22 +0000
committersalo <salo>2003-07-09 08:22:22 +0000
commitb4c998ed6ee790e66711e71c6a9ef87158d418e2 (patch)
treeb46d2a6add880a3ee5a7a5d997f0db829521ffd1 /mk
parentcd6056bfb95f96af45a5a702e0f78f58d4e4a642 (diff)
downloadpkgsrc-b4c998ed6ee790e66711e71c6a9ef87158d418e2.tar.gz
Introduce few new variables for (mostly) non-GCC compilers use with pkgsrc
so compiler-dependent settings can be set later. USE_GCC2 - GNU Compiler Collection 2.x (default) USE_GCC3 - GNU Compiler Collection 3.x (used already) USE_MIPSPRO - Silicon Graphics, Inc. MIPSpro Compiler USE_SUNPRO - Sun Microsystems, Inc. WorkShop/Forte/Sun ONE Studio Compiler Collection (Intel compilers on Linux, anyone? :) )
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.prefs.mk16
1 files changed, 15 insertions, 1 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index b160005e955..0664214d309 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.113 2003/06/05 00:23:29 jschauma Exp $
+# $NetBSD: bsd.prefs.mk,v 1.114 2003/07/09 08:22:22 salo Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@@ -335,4 +335,18 @@ WRKDIR_BASENAME?= work
WRKDIR?= ${BUILD_DIR}/${WRKDIR_BASENAME}
+# Set the default compiler to GCC 2.x if different compiler is not selected.
+#
+# Valid compilers are:
+#
+# USE_GCC2 - GNU Compiler Collection 2.x
+# USE_GCC3 - GNU Compiler Collection 3.x
+# USE_MIPSPRO - Silicon Graphics, Inc. MIPSpro Compiler
+# USE_SUNPRO - Sun Microsystems, Inc. WorkShop/Forte/Sun ONE Studio
+# Compiler Collection
+#
+.if !defined(USE_GCC3) && !defined(USE_MIPSPRO) && !defined(USE_SUNPRO)
+USE_GCC2= YES
+.endif
+
.endif # BSD_PKG_MK