summaryrefslogtreecommitdiff
path: root/mk/compiler
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2020-06-02 06:58:13 +0000
committerrillig <rillig@pkgsrc.org>2020-06-02 06:58:13 +0000
commit492dbe015badb822d9cf080cfef57bc2fe36f9c5 (patch)
tree9f0b9ba6563e6144c355640a9cdf7f71d773b6c4 /mk/compiler
parente567a8c41a3140818b991e7c86ab0c13aef8b440 (diff)
downloadpkgsrc-492dbe015badb822d9cf080cfef57bc2fe36f9c5.tar.gz
mk/compiler.mk: check for too late GCC_REQD and USE_LANGUAGES
For USE_LANGUAGES there is already a pkglint warning, but for GCC_REQD it is missing. It's better to have this check directly in the infrastructure since it is more reliable. This check is disabled by default, to not cause any new breakage. It should be enabled in bulk builds.
Diffstat (limited to 'mk/compiler')
-rw-r--r--mk/compiler/gcc.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk
index 5fb9b69afca..ed5a4c01d96 100644
--- a/mk/compiler/gcc.mk
+++ b/mk/compiler/gcc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.212 2020/05/31 00:00:13 sjmulder Exp $
+# $NetBSD: gcc.mk,v 1.213 2020/06/02 06:58:13 rillig Exp $
#
# This is the compiler definition for the GNU Compiler Collection.
#
@@ -1070,4 +1070,7 @@ COMPILER_INCLUDE_DIRS= ${_GCCBINDIR:H}/include ${_OPSYS_INCLUDE_DIRS}
COMPILER_LIB_DIRS= ${_GCCBINDIR:H}/lib ${_OPSYS_LIB_DIRS}
.endif
+#.READONLY: GCC_REQD
+_GCC_REQD_EFFECTIVE:= ${GCC_REQD}
+
.endif # COMPILER_GCC_MK