From b70fe224f6906a5c331ad8f305fa6b3dabc4a068 Mon Sep 17 00:00:00 2001 From: Michael Cahill Date: Sat, 16 Jul 2011 00:07:21 +1000 Subject: Don't pass the standard CFLAGS to the Python build: there are warnings in the generated code with all warnings enabled. --- build_posix/Make.base | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build_posix/Make.base b/build_posix/Make.base index e77d106bcf4..e1661c1dcba 100644 --- a/build_posix/Make.base +++ b/build_posix/Make.base @@ -23,13 +23,15 @@ prototype.chk: $(libwiredtiger_a_SOURCES) @(cd ../dist && sh s_prototypes) && touch $@ if PYTHON +PYSRC = ../lang/python if DEBUG PY_SETUP_DEBUG = -g endif all-local: _wiredtiger.so -../lang/python/wiredtiger_wrap.c: wiredtiger.h ../lang/python/wiredtiger.i - @(cd ../lang/python && swig -python -I../../build_posix wiredtiger.i) +$(PYSRC)/wiredtiger_wrap.c: wiredtiger.h $(PYSRC)/wiredtiger.i + @(cd $(PYSRC) && swig -python -I../../build_posix wiredtiger.i) -_wiredtiger.so: libwiredtiger.a ../lang/python/wiredtiger_wrap.c - @env CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" $(PYTHON) ../lang/python/setup.py build_ext -b . -t . -f $(PY_SETUP_DEBUG) +_wiredtiger.so: libwiredtiger.a $(PYSRC)/wiredtiger_wrap.c + @env CFLAGS="$(PYTHON_CFLAGS)" LDFLAGS="$(PYTHON_LDFLAGS)" \ + $(PYTHON) $(PYSRC)/setup.py build_ext -b . -t . -f $(PY_SETUP_DEBUG) endif -- cgit v1.2.1