mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
use -std=c++14 to unbreak with clang-16
This commit is contained in:
@@ -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@
|
||||
|
||||
Reference in New Issue
Block a user