summaryrefslogtreecommitdiffstats
path: root/autoconf.mk.in
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2013-01-24 17:18:28 +0100
committerJay Berkenbilt <ejb@ql.org>2013-03-04 22:45:15 +0100
commita11081085b9db8ee40236d47849276db71ba0801 (patch)
tree223c305fdb53f87fdb5506cd781b1a5b091c73aa /autoconf.mk.in
parent32b62035ce9d5d07f7396cc50a0c38215f19c906 (diff)
downloadqpdf-a11081085b9db8ee40236d47849276db71ba0801.tar.zst
Handle warning flags better
Make --enable-werror work properly on msvc, handle extra warnings flags for msvc in configure.ac instead of hardcoding into make/msvc.mk, separate warnings flags into WFLAGS in autoconf.mk to avoid duplication and to make it easier to override.
Diffstat (limited to 'autoconf.mk.in')
-rw-r--r--autoconf.mk.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/autoconf.mk.in b/autoconf.mk.in
index 630ba91e..b85faa23 100644
--- a/autoconf.mk.in
+++ b/autoconf.mk.in
@@ -12,12 +12,13 @@ docdir=@docdir@
htmldir=@htmldir@
pdfdir=@pdfdir
CC=@CC@
-CFLAGS=@CFLAGS@
+WFLAGS=@WFLAGS@
+CFLAGS=@CFLAGS@ $(WFLAGS)
LDFLAGS=@LDFLAGS@
LIBS=@LIBS@
CPPFLAGS=@CPPFLAGS@
CXX=@CXX@
-CXXFLAGS=@CXXFLAGS@
+CXXFLAGS=@CXXFLAGS@ $(WFLAGS)
AR=@AR@
RANLIB=@RANLIB@
DLLTOOL=@DLLTOOL@