diff options
author | Gaetan Nadon <memsize@videotron.ca> | 2012-02-19 08:36:17 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-02-22 09:57:04 +0000 |
commit | bf26bb974c1e47b8848ddab7dc2b2fe5d5f4fe72 (patch) | |
tree | b18bd01641852bd1b72b09c74b51329643afaf2e | |
parent | 7a2d46d0031b89cdf21717f0e64afca88ba116db (diff) |
make: add all warnings according to the platform
The current code only adds -Wall and only for gcc.
Automake reserves the use of CPPFLAGS for the user to override
on the command line.
This also breaks the option --enable-strict-compilation
The variable CWARNFLAGS contains the complete set of warnings
and is platform sensitive.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | src/Makefile.am | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index a2488f2..610c043 100644 --- a/configure.ac +++ b/configure.ac @@ -45,10 +45,6 @@ AM_MAINTAINER_MODE AC_DISABLE_STATIC AC_PROG_LIBTOOL -if test "x$GCC" = "xyes"; then - CPPFLAGS="$CPPFLAGS -Wall" -fi - AH_TOP([#include "xorg-server.h"]) AC_ARG_WITH(xorg-module-dir, diff --git a/src/Makefile.am b/src/Makefile.am index 40ebf0a..68a63fa 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -24,7 +24,7 @@ # _ladir passes a dummy rpath to libtool so the thing will actually link # TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc. -AM_CFLAGS = @XORG_CFLAGS@ @DRM_CFLAGS@ @UDEV_CFLAGS@ +AM_CFLAGS = $(XORG_CFLAGS) $(DRM_CFLAGS) $(UDEV_CFLAGS) $(CWARNFLAGS) modesetting_drv_la_LTLIBRARIES = modesetting_drv.la modesetting_drv_la_LDFLAGS = -module -avoid-version |