use -std=c++14 to unbreak with clang-16

This commit is contained in:
robert
2023-11-15 08:29:31 +00:00
parent b33a7e0e81
commit fe9c624184
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -15,6 +15,9 @@ WANTLIB= c m pthread ${COMPILER_LIBCXX}
COMPILER = base-clang ports-gcc base-gcc
CXXFLAGS_base-clang = -std=c++14
MAKE_ENV += CXXFLAGS="${CXXFLAGS}"
USE_GMAKE= Yes
CONFIGURE_STYLE= autoconf dest
AUTOCONF_VERSION= 2.67
@@ -8,7 +8,7 @@ Index: Makefile.in
-WFLAGS=-Wall -W -Wshadow -Wpointer-arith -Wwrite-strings -pedantic -ffor-scope -Wcast-align -Wsign-compare -Wpointer-arith -Wwrite-strings -Wformat-security -Wswitch-enum -Winit-self $(MORE_WARNINGS)
-CFLAGS=-O2 @debug@ -DNDEBUG $(WFLAGS) $(MORECFLAGS)
+WFLAGS=-Wall -W -Wshadow -Wpointer-arith -Wwrite-strings -pedantic -ffor-scope -Wcast-align -Wsign-compare -Wpointer-arith -Wwrite-strings -Wformat-security -Wswitch-enum $(MORE_WARNINGS)
+CFLAGS+=@debug@ -DNDEBUG $(WFLAGS) $(MORECFLAGS)
+CFLAGS+=${CXXFLAGS} @debug@ -DNDEBUG $(WFLAGS) $(MORECFLAGS)
CXX=@CXX@ $(CFLAGS)
LINK=@CXX@
THREAD_LFLAGS=@thread_ldflags@