From fe1b45c8350359002db72385389f3394efca5065 Mon Sep 17 00:00:00 2001 From: Alexander Lehmann Date: Tue, 25 May 2010 14:25:07 +0200 Subject: [PATCH] Honor CPPFLAGS in python wrapper to improve build process on Mac OS X --- bindings/python/Makefile.am | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am index 2b47b6a..01de1fe 100644 --- a/bindings/python/Makefile.am +++ b/bindings/python/Makefile.am @@ -17,7 +17,7 @@ all-local: ftdi_wrap.c ftdi.py $(PYTHON) setup.py build --compiler=mingw32 \ ;; \ *) \ - $(PYTHON) setup.py build \ + CPPFLAGS="$(CPPFLAGS)" $(PYTHON) setup.py build \ ;; \ esac; @@ -36,7 +36,7 @@ install-exec-local: $(PYTHON) setup.py install --prefix="$$NATIVE_WINDOWS_PREFIX" \ ;; \ *) \ - $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix) \ + CPPFLAGS="$(CPPFLAGS)" $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix) \ ;; \ esac; -- 1.7.1