Invent --with-extra-cc/cxx-flags
Change-Id: I22ce959f1fe74b8eb1fa0d0fbffe8b257e7f3110 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173731 Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de> Tested-by: Jenkins
This commit is contained in:
parent
944fbe89fd
commit
3b4ecb07a6
1 changed files with 13 additions and 0 deletions
13
configure.ac
13
configure.ac
|
@ -2190,6 +2190,16 @@ AC_ARG_ENABLE(cli,
|
|||
[Disable the generation of old CLI bindings.]),
|
||||
,enable_cli=yes)
|
||||
|
||||
AC_ARG_WITH(extra-cc-flags,
|
||||
AS_HELP_STRING([--with-extra-cc-flags=...],
|
||||
[Specify extra flags (like GCC's -fdiagnostics-color=always, which is useful in combination
|
||||
with the GNU Make --output-sync option) to add to the end of the CC variable.]))
|
||||
|
||||
AC_ARG_WITH(extra-cxx-flags,
|
||||
AS_HELP_STRING([--with-extra-cxx-flags=...],
|
||||
[Specify extra flags (like GCC's -fdiagnostics-color=always, which is useful in combination
|
||||
with the GNU Make --output-sync option) to add to the end of the CXX variable.]))
|
||||
|
||||
dnl ===================================================================
|
||||
dnl Optional Packages (--with/without-)
|
||||
dnl ===================================================================
|
||||
|
@ -7323,6 +7333,9 @@ if test "$_os" != "WINNT"; then
|
|||
fi
|
||||
fi
|
||||
|
||||
CC="$CC $with_extra_cc_flags"
|
||||
CXX="$CXX $with_extra_cxx_flags"
|
||||
|
||||
dnl check for GNU C++ compiler version
|
||||
if test "$GXX" = "yes" -a -z "$COM_IS_CLANG"; then
|
||||
AC_MSG_CHECKING([the GNU C++ compiler version])
|
||||
|
|
Loading…
Reference in a new issue