From 63bac7e897d39682d2e787ff171a8655b74cf845 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 11 Nov 2016 09:12:33 +0000 Subject: [PATCH] Add '-std=gnu++98' to the CXXFLAGS makefile macro defined with JS_CONFIGURE_ENV This was needed for libmozjs 1.8.5 to compile with GCC (g++) v6.2.1. Hopefully this works with clang (FreeBSD) too. --- 3rdp/build/GNUmakefile | 1 + 1 file changed, 1 insertion(+) diff --git a/3rdp/build/GNUmakefile b/3rdp/build/GNUmakefile index 98dc492d68..46918a7f18 100644 --- a/3rdp/build/GNUmakefile +++ b/3rdp/build/GNUmakefile @@ -10,6 +10,7 @@ ifdef DEBUG else JS_CONFIGURE_ARGS += --enable-optimize=-O3 endif +JS_CONFIGURE_ENV += 'CXXFLAGS=-std=gnu++98' ifeq ($(shell perl -e 'print "$(machine)"=~/\.arm/?"YES":"NO"'),YES) ifeq ($(shell perl -e 'print "$(machine)"=~/\.armv[1-6]/?"YES":"NO"'),YES) JS_CONFIGURE_ARGS += --with-cpu-arch=armv5te -- GitLab