Source-Changes-D archive

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

Re: CVS commit: src/etc/etc.evbarm



On Tue, Nov 06, 2018 at 12:58:54AM +0000, maya%netbsd.org@localhost wrote:
> On Mon, Nov 05, 2018 at 09:45:38PM +0100, Herbert J. Skuhra wrote:
> > With etc/etc.evbarm/Makefile.inc r1.97 the command completes. I only
> > have to fix the build of groff (PR #53314) by removing/commenting out
> > the following lines in obj/tools/groff/build/src/include/config.h:
> > 
> > #define NEED_DECLARATION_GETTIMEOFDAY 1
> > #define NEED_DECLARATION_PUTENV 1
> > #define NEED_DECLARATION_SRAND 1
> > #define NEED_DECLARATION_STRNCASECMP 1
> 
> on -8 its fixed it with
> https://releng.netbsd.org/cgi-bin/req-8.cgi?show=1070

Adding HOST_CXXFLAGS to tools/Makefile.gnuhost fixes the issue:

--- tools/Makefile.gnuhost      22 Oct 2018 13:19:42 -0000      1.51
+++ tools/Makefile.gnuhost      6 Nov 2018 07:14:01 -0000
@@ -22,6 +22,7 @@
 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}



Thanks.

-- 
Herbert 


Home | Main Index | Thread Index | Old Index