Skip to content

Commit fa14c68

Browse files
author
MarcoFalke
committed
build: Add --with-append-cxxflags option
1 parent 914c0ca commit fa14c68

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

configure.ac

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,11 @@ AC_ARG_ENABLE([reduce-exports],
212212
[use_reduce_exports=$enableval],
213213
[use_reduce_exports=no])
214214

215+
AC_ARG_WITH([append-cxxflags],
216+
[AS_HELP_STRING([--with-append-cxxflags],
217+
[append given cxxflags without checking them (default is empty string)])],
218+
[append_cxxflags=$withval])
219+
215220
AC_ARG_ENABLE([ccache],
216221
[AS_HELP_STRING([--disable-ccache],
217222
[do not use ccache for building (default is to use if found)])],
@@ -1428,6 +1433,8 @@ if test x$use_reduce_exports = xyes; then
14281433
AX_CHECK_LINK_FLAG([[-Wl,--exclude-libs,ALL]],[RELDFLAGS="-Wl,--exclude-libs,ALL"],,[[$LDFLAG_WERROR]])
14291434
fi
14301435

1436+
CXXFLAGS="$CXXFLAGS $append_cxxflags"
1437+
14311438
if test x$use_tests = xyes; then
14321439

14331440
if test x$HEXDUMP = x; then

0 commit comments

Comments
 (0)