Centralize C++ version in Makefiles (#2713)

This commit is contained in:
Andrew Gaul
2025-08-30 16:49:51 +09:00
committed by GitHub
parent 1366f582b1
commit ff2080a39e
5 changed files with 8 additions and 5 deletions

View File

@ -34,7 +34,10 @@ AC_CHECK_HEADERS([attr/xattr.h])
AC_CHECK_HEADERS([sys/extattr.h])
AC_CHECK_FUNCS([fallocate])
CXXFLAGS="-Wall -fno-exceptions -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=3 -std=c++14 $CXXFLAGS"
CPP_VERSION=c++14
AC_SUBST([CPP_VERSION])
CXXFLAGS="-Wall -fno-exceptions -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=3 -std=$CPP_VERSION $CXXFLAGS"
dnl ----------------------------------------------
dnl For macOS