summaryrefslogtreecommitdiff
path: root/mk/compiler
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2021-01-17 15:32:00 +0000
committermaya <maya@pkgsrc.org>2021-01-17 15:32:00 +0000
commitd8a6e718e14c56ccbed9a37e5a6fa8433402d3c7 (patch)
tree6e267375c6825e8471f2b14cfe7c7adb7d0b7051 /mk/compiler
parentaf126f9e174b0c5f2e3b02127f8ff252541debd2 (diff)
downloadpkgsrc-d8a6e718e14c56ccbed9a37e5a6fa8433402d3c7.tar.gz
If the base GCC isn't enough, and GCC_REQD=4.5 to 6, use gcc6.
gcc4.8,4.9,5 have bugs preventing them from being useful within pkgsrc for the primary use case that finds them handy: glibc + FORTIFY + those GCC versions = build failures. Additionally, requiring fewer versions of GCC is an improvement for the vast majority of use-cases considered. We might want to bump this further than gcc6 later on, but this is a big improvement for CentOS builds.
Diffstat (limited to 'mk/compiler')
-rw-r--r--mk/compiler/gcc.mk37
1 files changed, 5 insertions, 32 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk
index 41b14a2bd7e..11eef5c2a1c 100644
--- a/mk/compiler/gcc.mk
+++ b/mk/compiler/gcc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.217 2020/12/05 09:24:00 wiz Exp $
+# $NetBSD: gcc.mk,v 1.218 2021/01/17 15:32:00 maya Exp $
#
# This is the compiler definition for the GNU Compiler Collection.
#
@@ -95,8 +95,8 @@ _DEF_VARS.gcc= \
_LANGUAGES.gcc \
_LINKER_RPATH_FLAG \
_NEED_GCC2 _NEED_GCC3 _NEED_GCC34 _NEED_GCC44 \
- _NEED_GCC48 _NEED_GCC49 _NEED_GCC5 _NEED_GCC6 \
- _NEED_GCC7 _NEED_GCC8 _NEED_GCC9 _NEED_GCC10 \
+ _NEED_GCC6 \ _NEED_GCC7 _NEED_GCC8 _NEED_GCC9 \
+ _NEED_GCC10 \
_NEED_GCC_AUX _NEED_NEWER_GCC \
_PKGSRC_GCC_VERSION \
_USE_GCC_SHLIB _USE_PKGSRC_GCC \
@@ -171,17 +171,8 @@ _GCC34_PATTERNS= 3.[4-9] 3.[4-9].* 3.[1-9][0-9]*
# _GCC44_PATTERNS matches N s.t. 4.0 <= N < 4.5.
_GCC44_PATTERNS= 4.[0-4] 4.[0-4].*
-# _GCC48_PATTERNS matches N s.t. 4.5 <= N < 4.9.
-_GCC48_PATTERNS= 4.[5-8] 4.[5-8].*
-
-# _GCC49_PATTERNS matches N s.t. 4.9 <= N < 4.10.
-_GCC49_PATTERNS= 4.9 4.9.*
-
-# _GCC5_PATTERNS matches N s.t. 5.0 <= N < 6.
-_GCC5_PATTERNS= 5 5.*
-
-# _GCC6_PATTERNS matches N s.t. 6.0 <= N < 7.
-_GCC6_PATTERNS= 6 6.*
+# _GCC6_PATTERNS matches N s.t. 4.5 <= N < 7.
+_GCC6_PATTERNS= 4.[5-9] 4.[5-9]* 5 5.* 6 6.*
# _GCC7_PATTERNS matches N s.t. 7.0 <= N < 8.
_GCC7_PATTERNS= 7 7.*
@@ -322,24 +313,6 @@ _NEED_GCC44?= no
_NEED_GCC44= yes
. endif
.endfor
-_NEED_GCC48?= no
-.for _pattern_ in ${_GCC48_PATTERNS}
-. if !empty(_GCC_REQD:M${_pattern_})
-_NEED_GCC48= yes
-. endif
-.endfor
-_NEED_GCC49?= no
-.for _pattern_ in ${_GCC49_PATTERNS}
-. if !empty(_GCC_REQD:M${_pattern_})
-_NEED_GCC49= yes
-. endif
-.endfor
-_NEED_GCC5?= no
-.for _pattern_ in ${_GCC5_PATTERNS}
-. if !empty(_GCC_REQD:M${_pattern_})
-_NEED_GCC5= yes
-. endif
-.endfor
_NEED_GCC6?= no
.for _pattern_ in ${_GCC6_PATTERNS}
. if !empty(_GCC_REQD:M${_pattern_})