r26582: Use the same swig flags everywhere.
authorJelmer Vernooij <jelmer@samba.org>
Mon, 24 Dec 2007 07:55:09 +0000 (01:55 -0600)
committerStefan Metzmacher <metze@samba.org>
Mon, 24 Dec 2007 07:51:07 +0000 (01:51 -0600)
source/lib/ldb/Makefile.in
source/lib/ldb/autogen.sh
source/lib/tdb/Makefile.in
source/lib/tdb/autogen.sh

index 26b77d7dc19169870589e8ec0dca38eeb026cf4e..4788c02598c95f3c87b4ff1b1bce67d774395f49 100644 (file)
@@ -235,7 +235,7 @@ ctags:
        ctags `find $(srcdir) -name "*.[ch]"`
 
 %_wrap.c %.py: %.i
-       $(SWIG) -python -keyword $<
+       $(SWIG) -O -Wall -python -keyword $<
 
 # Python bindings
 build-python: lib/libldb.$(SHLIBEXT) ldb_wrap.c ldb.py
index 921ef04d82e481f4d2f2881f221cf7c6aee33820..cb837b3af940caa98a462eef13d7da12bddf297a 100755 (executable)
@@ -17,7 +17,7 @@ autoconf $IPATHS || exit 1
 
 rm -rf autom4te.cache
 
-swig -python ldb.i # Ignore errors, for now
+swig -O -Wall -python -keyword ldb.i # Ignore errors, for now
 
 echo "Now run ./configure and then make."
 exit 0
index e45fa3cf79f47965b199de204bc838515042002d..a60b9a67bf5b11475a14838a044ac1e61659f495 100644 (file)
@@ -113,7 +113,7 @@ realdistclean: distclean
        rm -f configure include/config.h.in
 
 tdb_wrap.c tdb.py: tdb.i
-       $(SWIG) -python -keyword tdb.i
+       $(SWIG) -O -Wall -python -keyword tdb.i
 
 build-python: libtdb.$(SHLIBEXT) tdb_wrap.c tdb.py
        ./setup.py build
index 8660843d2bf814f5c58d02310e78738ca0fdc6b9..88ac4cfcf73fb364825f2661b340456dc6ccc5fb 100755 (executable)
@@ -9,7 +9,7 @@ autoheader $IPATHS || exit 1
 
 rm -rf autom4te.cache
 
-swig -python -keyword tdb.i # Ignore errors for now
+swig -O -Wall -python -keyword tdb.i # Ignore errors for now
 
 echo "Now run ./configure and then make."
 exit 0