Source-Changes-HG archive

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

[src/trunk]: src/share/mk Strip -Wsystem-headers from CXXFLAGS.



details:   https://anonhg.NetBSD.org/src/rev/a93c29de7860
branches:  trunk
changeset: 323548:a93c29de7860
user:      maya <maya%NetBSD.org@localhost>
date:      Wed Jun 20 02:15:13 2018 +0000

description:
Strip -Wsystem-headers from CXXFLAGS.

GCC's C++ headers are not clean (yet). They are trying, but haven't got there
yet.

Necessary for including <atf-c++.hpp> which uses <sstream>.

diffstat:

 share/mk/sys.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r fbe1cedcee71 -r a93c29de7860 share/mk/sys.mk
--- a/share/mk/sys.mk   Tue Jun 19 23:43:11 2018 +0000
+++ b/share/mk/sys.mk   Wed Jun 20 02:15:13 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: sys.mk,v 1.131 2018/05/20 14:39:53 christos Exp $
+#      $NetBSD: sys.mk,v 1.132 2018/06/20 02:15:13 maya Exp $
 #      @(#)sys.mk      8.2 (Berkeley) 3/21/94
 #
 # This file contains the basic rules for make(1) and is read first
@@ -50,7 +50,7 @@
 CTFMFLAGS      ?=      -t -g -L VERSION
 
 CXX?=          c++
-CXXFLAGS?=     ${CFLAGS:N-Wno-traditional:N-Wstrict-prototypes:N-Wmissing-prototypes:N-Wno-pointer-sign:N-ffreestanding:N-std=gnu[0-9][0-9]:N-Wold-style-definition:N-Wno-format-zero-length}
+CXXFLAGS?=     
${CFLAGS:N-Wno-traditional:N-Wstrict-prototypes:N-Wmissing-prototypes:N-Wno-pointer-sign:N-ffreestanding:N-std=gnu[0-9][0-9]:N-Wold-style-definition:N-Wno-format-zero-length:N-Wsystem-headers}
 
 __ALLSRC1=     ${empty(DESTDIR):?${.ALLSRC}:${.ALLSRC:S|^${DESTDIR}|^destdir|}}
 __ALLSRC2=     ${empty(MAKEOBJDIR):?${__ALLSRC1}:${__ALLSRC1:S|^${MAKEOBJDIR}|^obj|}}



Home | Main Index | Thread Index | Old Index