From ac07122c1a7601100e15c982ff938d5632d9e7a0 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Tue, 1 Jun 2021 10:29:47 +0200 Subject: [PATCH] build: Add --with-append-cxxflags option Github-Pull: #22159 Rebased-From: fa14c6818f4094669584a110a517fa1347f1f36e --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 1e6ac93e78..9c1184929e 100644 --- a/configure.ac +++ b/configure.ac @@ -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