summaryrefslogtreecommitdiff
path: root/build_posix/Make.base
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2011-07-16 00:07:21 +1000
committerMichael Cahill <michael.cahill@wiredtiger.com>2011-07-16 00:07:21 +1000
commitb70fe224f6906a5c331ad8f305fa6b3dabc4a068 (patch)
tree983105e814b5d0dfefee9336d4587ee4606c735d /build_posix/Make.base
parent9ff2e00cc6c8e6c66004b1acb4cffe18fecc77f6 (diff)
downloadmongo-b70fe224f6906a5c331ad8f305fa6b3dabc4a068.tar.gz
Don't pass the standard CFLAGS to the Python build: there are warnings in the generated code with all warnings enabled.
Diffstat (limited to 'build_posix/Make.base')
-rw-r--r--build_posix/Make.base10
1 files 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