build: Add --with-append-cxxflags option

Github-Pull: #22159
Rebased-From: fa14c6818f4094669584a110a517fa1347f1f36e
This commit is contained in:
MarcoFalke 2021-06-01 10:29:47 +02:00 committed by Luke Dashjr
parent 30308cc380
commit ac07122c1a

View File

@ -220,6 +220,11 @@ AC_ARG_ENABLE([reduce-exports],
[use_reduce_exports=$enableval],
[use_reduce_exports=no])
AC_ARG_WITH([append-cxxflags],
[AS_HELP_STRING([--with-append-cxxflags],
[append given cxxflags without checking them (default is empty string)])],
[append_cxxflags=$withval])
AC_ARG_ENABLE([ccache],
[AS_HELP_STRING([--disable-ccache],
[do not use ccache for building (default is to use if found)])],
@ -1497,6 +1502,8 @@ if test "$use_reduce_exports" = "yes"; then
AX_CHECK_LINK_FLAG([-Wl,--exclude-libs,ALL], [RELDFLAGS="-Wl,--exclude-libs,ALL"], [], [$LDFLAG_WERROR])
fi
CXXFLAGS="$CXXFLAGS $append_cxxflags"
if test "$use_tests" = "yes"; then
if test "$HEXDUMP" = ""; then