diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2016-05-18 20:49:36 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2016-05-18 20:52:36 +0200 |
commit | 9b402f6467e58b33d9e2b9cba0892e0a7f5e91e4 (patch) | |
tree | f2095537732a226f56868d9c863c7dc6b6634a8a /m4 | |
parent | 6811ad4dc9daa53121758d382ceb1cd70252766b (diff) |
build: use the glib cflags when checking the compiler flags
Some of the checks include glib headers.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/compiler_warnings.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/compiler_warnings.m4 b/m4/compiler_warnings.m4 index 77dcc7a50..e952e3afb 100644 --- a/m4/compiler_warnings.m4 +++ b/m4/compiler_warnings.m4 @@ -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([[]])], [ |