mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
* acinclude.m4: applied patch from Jim Meyering to avoid clobbering
user specified CFLAGS Daniel
This commit is contained in:
@@ -3,6 +3,9 @@ dnl Taken from gnome-common/macros2/gnome-compiler-flags.m4
|
||||
dnl
|
||||
dnl We've added:
|
||||
dnl -Wextra -Wshadow -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Winline -Wredundant-decls
|
||||
dnl We've removed
|
||||
dnl CFLAGS="$realsave_CFLAGS"
|
||||
dnl to avoid clobbering user-specified CFLAGS
|
||||
dnl
|
||||
AC_DEFUN([LIBVIRT_COMPILE_WARNINGS],[
|
||||
dnl ******************************
|
||||
@@ -59,8 +62,6 @@ AC_DEFUN([LIBVIRT_COMPILE_WARNINGS],[
|
||||
unset option
|
||||
unset try_compiler_flags
|
||||
|
||||
CFLAGS="$realsave_CFLAGS"
|
||||
|
||||
AC_ARG_ENABLE(iso-c,
|
||||
AC_HELP_STRING([--enable-iso-c],
|
||||
[Try to warn if code is not ISO C ]),,
|
||||
|
||||
Reference in New Issue
Block a user