pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/compiler clang 10 defaults to -fno-common with sign...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7505070c5a48
branches:  trunk
changeset: 427516:7505070c5a48
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Apr 17 13:35:36 2020 +0000

description:
clang 10 defaults to -fno-common with significant fallout in pkgsrc.
Override that by prepending -fcommon.

diffstat:

 mk/compiler/clang.mk |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 470137705d70 -r 7505070c5a48 mk/compiler/clang.mk
--- a/mk/compiler/clang.mk      Fri Apr 17 13:34:47 2020 +0000
+++ b/mk/compiler/clang.mk      Fri Apr 17 13:35:36 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: clang.mk,v 1.23 2020/03/30 09:39:24 nia Exp $
+# $NetBSD: clang.mk,v 1.24 2020/04/17 13:35:36 joerg Exp $
 #
 # This is the compiler definition for the clang compiler.
 #
@@ -90,8 +90,8 @@
 .  include "../../mk/compiler/${PKGSRC_FORTRAN}.mk"
 .endif
 
-_WRAP_EXTRA_ARGS.CC+=  -Qunused-arguments
-CWRAPPERS_APPEND.cc+=  -Qunused-arguments
+_WRAP_EXTRA_ARGS.CC+=  -Qunused-arguments -fcommon
+CWRAPPERS_APPEND.cc+=  -Qunused-arguments -fcommon
 _WRAP_EXTRA_ARGS.CXX+= -Qunused-arguments
 CWRAPPERS_APPEND.cxx+= -Qunused-arguments
 



Home | Main Index | Thread Index | Old Index