From: Alexander Lehmann Date: Tue, 25 May 2010 12:25:07 +0000 (+0200) Subject: Honor CPPFLAGS in python wrapper to improve build process on Mac OS X X-Git-Tag: v1.0rc1~174 X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=commitdiff_plain;h=fe1b45c8350359002db72385389f3394efca5065 Honor CPPFLAGS in python wrapper to improve build process on Mac OS X --- 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;