Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/compiler mk/compiler: Set -fcommon for GCC 10



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4ecf990fcdb2
branches:  trunk
changeset: 433105:4ecf990fcdb2
user:      sjmulder <sjmulder%pkgsrc.org@localhost>
date:      Sun May 31 00:00:13 2020 +0000

description:
mk/compiler: Set -fcommon for GCC 10

As with clang. Default got flipped with v10.

diffstat:

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

diffs (19 lines):

diff -r eb3e2207028f -r 4ecf990fcdb2 mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk        Sat May 30 22:45:36 2020 +0000
+++ b/mk/compiler/gcc.mk        Sun May 31 00:00:13 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.211 2020/05/30 22:45:36 sjmulder Exp $
+# $NetBSD: gcc.mk,v 1.212 2020/05/31 00:00:13 sjmulder Exp $
 #
 # This is the compiler definition for the GNU Compiler Collection.
 #
@@ -396,6 +396,9 @@
 _LANGUAGES.gcc+=       ${LANGUAGES.gcc:M${_lang_}}
 .endfor
 
+_WRAP_EXTRA_ARGS.cc+=  -fcommon
+CWRAPPERS_PREPEND.cc+= -fcommon
+
 .if !empty(USE_LANGUAGES:Mc99)
 _WRAP_EXTRA_ARGS.CC+=  -std=gnu99
 CWRAPPERS_APPEND.cc+=  -std=gnu99



Home | Main Index | Thread Index | Old Index