pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/compiler gcc.mk: gcc8 and gcc9 from pkgsrc do not b...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/75d752f83309
branches:  trunk
changeset: 376413:75d752f83309
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Apr 07 07:08:34 2022 +0000

description:
gcc.mk: gcc8 and gcc9 from pkgsrc do not build on 32-bit netbsd arm

workaround PR pkg/56679

diffstat:

 mk/compiler/gcc.mk |  13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 8cbbd581e46c -r 75d752f83309 mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk        Thu Apr 07 07:01:44 2022 +0000
+++ b/mk/compiler/gcc.mk        Thu Apr 07 07:08:34 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.237 2022/04/04 11:23:06 riastradh Exp $
+# $NetBSD: gcc.mk,v 1.238 2022/04/07 07:08:34 nia Exp $
 #
 # This is the compiler definition for the GNU Compiler Collection.
 #
@@ -316,6 +316,17 @@
 _NEED_GCC8=    yes
 .endif
 
+# April 2022: GCC below 10 from pkgsrc is broken on 32-bit arm NetBSD.
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-earm*) && \
+    ${OPSYS_VERSION} < 099900 && \ 
+    (${_NEED_GCC8:tl} == "yes" || ${_NEED_GCC9:tl} == "yes")
+_NEED_GCC6=    no
+_NEED_GCC7=    no
+_NEED_GCC8=    no
+_NEED_GCC9=    no
+_NEED_GCC10=   yes
+.endif
+
 # Assume by default that GCC will only provide a C compiler.
 LANGUAGES.gcc?=        c
 .if !empty(_NEED_GCC6:M[yY][eE][sS])



Home | Main Index | Thread Index | Old Index