Source-Changes-HG archive

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

[src/netbsd-8]: src/tools Apply patch, requested by maya in ticket #1070:



details:   https://anonhg.NetBSD.org/src/rev/9b02d56f32f7
branches:  netbsd-8
changeset: 445380:9b02d56f32f7
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Oct 26 15:12:53 2018 +0000

description:
Apply patch, requested by maya in ticket #1070:

force build of gcc and friends with -std=gnu++03 when the host compiler
is clang. New clang versions default to newer c++ standards and the
old gcc in this branch has not been updated to those.

diffstat:

 tools/Makefile.gnuhost |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 9f45d8ff36bc -r 9b02d56f32f7 tools/Makefile.gnuhost
--- a/tools/Makefile.gnuhost    Thu Oct 25 18:33:52 2018 +0000
+++ b/tools/Makefile.gnuhost    Fri Oct 26 15:12:53 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.gnuhost,v 1.44.8.2 2018/04/18 14:01:16 martin Exp $
+#      $NetBSD: Makefile.gnuhost,v 1.44.8.3 2018/10/26 15:12:53 martin Exp $
 #
 # Rules used when building a GNU host package.  Expects MODULE to be set.
 #
@@ -19,8 +19,10 @@
 
 # Disable use of pre-compiled headers on Darwin.
 BUILD_OSTYPE!= uname -s
-.if ${BUILD_OSTYPE} == "Darwin"
+HOST_COMPILER_CLANG!= if ${HOST_CC} --version | grep -q -s clang; then echo yes; else echo no; fi
+.if ${HOST_COMPILER_CLANG} == "yes"
 HOST_CFLAGS+=-O2 -no-cpp-precomp
+HOST_CXXFLAGS+=-std=gnu++03
 .endif
 
 MAKE_PROGRAM?= ${MAKE}



Home | Main Index | Thread Index | Old Index