mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-08 02:30:18 +01:00
build: use the glib cflags when checking the compiler flags
Some of the checks include glib headers.
This commit is contained in:
parent
6280839c16
commit
85c92ff372
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ dnl Check whether a particular compiler flag works with code provided,
|
|||
dnl disable it in CFLAGS if the check fails.
|
||||
AC_DEFUN([NM_COMPILER_WARNING], [
|
||||
CFLAGS_SAVED="$CFLAGS"
|
||||
CFLAGS="$CFLAGS -Werror -W$1"
|
||||
CFLAGS="$CFLAGS $GLIB_CFLAGS -Werror $1"
|
||||
AC_MSG_CHECKING(whether -W$1 works)
|
||||
|
||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[]])], [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue