summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2025-02-22 19:35:30 +0100
committerFedja Beader <fedja@protonmail.ch>2025-02-22 19:50:51 +0100
commit7919681c7efd589dc70d9b67e7648a9ddfbd1764 (patch)
tree7eb8ca5637cfd12be767300dc7d1b0a8d4562096 /build
parentbb5d5bef365c65fed4fa32c3ac2ce384b2ea4e52 (diff)
downloadmanaplus-7919681c7efd589dc70d9b67e7648a9ddfbd1764.tar.gz
manaplus-7919681c7efd589dc70d9b67e7648a9ddfbd1764.tar.bz2
manaplus-7919681c7efd589dc70d9b67e7648a9ddfbd1764.tar.xz
manaplus-7919681c7efd589dc70d9b67e7648a9ddfbd1764.zip
Set C++11 as default C++ standard
Autoconf manual states that CXXFLAGS is a user variable and should not be overriden, so I did not use AX_APPEND_COMPILE_FLAGS for this. Thus, there are not checks if the compiler supports it, but also the builder can override this flag by passing another flag that overrides it on the command line. Okay, this is now way too theoretical. Indeed, the override happens with ./configure 'CXXFLAGS=-std=c++17' (both flags in final command line) Do note: - The standard has not explicitly set for some builds (thus compiler default was used) - The default on my own box is C++17 - I'm setting C++11 as that's required by my previous change. Upgrade to C++17 is deferred to until it becomes required. - The use of CPPFLAGS could be reviewed... they may be used incorrectly (instead of CXXFLAGS).
Diffstat (limited to 'build')
-rwxr-xr-xbuild/bmake02
-rwxr-xr-xbuild/bmake462
2 files changed, 2 insertions, 2 deletions
diff --git a/build/bmake0 b/build/bmake0
index a8c44b597..71c6b587f 100755
--- a/build/bmake0
+++ b/build/bmake0
@@ -23,7 +23,7 @@ export CXXFLAGS="-Wvariadic-macros -Wvla -Wredundant-decls \
-Wstack-protector -Wshadow -Wunused-macros -Wsynth \
-Wbuiltin-macro-redefined -Wctor-dtor-privacy -Wdeprecated -Wextra \
-Wendif-labels -Wformat=1 -Wimport -Wnon-virtual-dtor -Wpsabi \
--Wsign-promo -Wwrite-strings -D_FORTIFY_SOURCE=2 -Wc++11-compat -std=c++0x \
+-Wsign-promo -Wwrite-strings -D_FORTIFY_SOURCE=2 -Wc++17-compat \
-Wdelete-non-virtual-dtor -Wmaybe-uninitialized -Wunused-local-typedefs \
-Wvector-operation-performance -Wfree-nonheap-object -Winvalid-memory-model \
-Wnarrowing -Wzero-as-null-pointer-constant \
diff --git a/build/bmake46 b/build/bmake46
index 55355b8d0..1c3082297 100755
--- a/build/bmake46
+++ b/build/bmake46
@@ -50,7 +50,7 @@ export CXXFLAGS="-Wvariadic-macros -Wvla -Wredundant-decls \
-Wstack-protector -Wshadow -Wunused -Wunused-macros -Wsynth \
-Wbuiltin-macro-redefined -Wctor-dtor-privacy -Wdeprecated -Wextra \
-Wendif-labels -Wformat=1 -Wimport -Wnon-virtual-dtor -Wpsabi \
--Wsign-promo -Wwrite-strings -D_FORTIFY_SOURCE=2 -Wc++0x-compat \
+-Wsign-promo -Wwrite-strings -D_FORTIFY_SOURCE=2 -Wc++17-compat \
-Wno-attributes"
autoreconf -i