summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2008-12-18 12:20:00 +0000
committerDaniel P. Berrange <berrange@redhat.com>2008-12-18 12:20:00 +0000
commit7ffd1965695d15a3b3819ccd67bb20c0c0ef4e30 (patch)
tree3c513d7a6b44eb0f3941f0e42101abe03bc28c46 /Makefile.am
parentdcfdf926f14dfc7000d7fb574d7a9fac686c959b (diff)
downloadlibvirt-python-v6-7ffd1965695d15a3b3819ccd67bb20c0c0ef4e30.tar.gz
libvirt-python-v6-7ffd1965695d15a3b3819ccd67bb20c0c0ef4e30.tar.xz
libvirt-python-v6-7ffd1965695d15a3b3819ccd67bb20c0c0ef4e30.zip
Fix gcc-ism in python build (John Levon)
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 90b87bb..8d1462b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -34,8 +34,9 @@ all-local: libvirt.py
python_LTLIBRARIES = libvirtmod.la
libvirtmod_la_SOURCES = libvir.c types.c libvirt-py.c libvirt-py.h
-# Python header files contain a redundant decl, hence:
-libvirtmod_la_CFLAGS = -Wno-redundant-decls
+# Python <= 2.4 header files contain a redundant decl, hence we
+# need extra flags here
+libvirtmod_la_CFLAGS = @WARN_PYTHON_CFLAGS@
libvirtmod_la_LDFLAGS = -module -avoid-version -L$(top_builddir)/src/.libs \
@CYGWIN_EXTRA_LDFLAGS@