Commit 74bb9072 authored by Gaetan Nadon's avatar Gaetan Nadon

config: move CWARNFLAGS from configure.ac to Makefile.am

Compiler warning flags should be explicitly set in the makefile
rather than being merged with other packages compiler flags.
Signed-off-by: Gaetan Nadon's avatarGaetan Nadon <memsize@videotron.ca>
parent 449d2218
......@@ -52,9 +52,6 @@ AC_PROG_LIBTOOL
RANDR_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'`]
AC_SUBST(RANDR_VERSION)
PKG_CHECK_MODULES(RANDR, x11 randrproto >= $RANDR_VERSION xext xextproto xrender renderproto)
RANDR_CFLAGS="$CWARNFLAGS $RANDR_CFLAGS"
AC_SUBST(RANDR_CFLAGS)
AC_SUBST(RANDR_LIBS)
XORG_CHECK_MALLOC_ZERO
......
......@@ -11,7 +11,11 @@ libXrandr_la_SOURCES = \
XrrScreen.c
libXrandr_la_LIBADD = @RANDR_LIBS@
AM_CFLAGS = @RANDR_CFLAGS@ @MALLOC_ZERO_CFLAGS@
AM_CFLAGS = \
$(RANDR_CFLAGS) \
$(MALLOC_ZERO_CFLAGS) \
$(CWARNFLAGS)
INCLUDES = -I$(top_srcdir)/include/X11/extensions
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment