From: Alexandru Ardelean Date: Sun, 19 Oct 2014 07:03:44 +0000 (+0300) Subject: python: add PYTHON_INC_DIR var to CPPFLAGS X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bfb286ff624787633c6ed441c1be729526cb3383;p=feed%2Fpackages.git python: add PYTHON_INC_DIR var to CPPFLAGS The target's PYTHON_INC_DIR should take precedence over the host's include dir when cross-compiling. Signed-off-by: Alexandru Ardelean --- diff --git a/lang/python/files/python-package.mk b/lang/python/files/python-package.mk index 8bf51ed95f..2730763872 100644 --- a/lang/python/files/python-package.mk +++ b/lang/python/files/python-package.mk @@ -75,7 +75,7 @@ define Build/Compile/PyMod CC="$(TARGET_CC)" \ CCSHARED="$(TARGET_CC) $(FPIC)" \ CFLAGS="$(TARGET_CFLAGS)" \ - CPPFLAGS="$(TARGET_CPPFLAGS)" \ + CPPFLAGS="$(TARGET_CPPFLAGS) -I$(PYTHON_INC_DIR)" \ LDFLAGS="$(TARGET_LDFLAGS)" \ $(3) \ , \