python: add PYTHON_INC_DIR var to CPPFLAGS
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Sun, 19 Oct 2014 07:03:44 +0000 (10:03 +0300)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Sun, 19 Oct 2014 19:33:08 +0000 (22:33 +0300)
The target's PYTHON_INC_DIR should take precedence over the host's
include dir when cross-compiling.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lang/python/files/python-package.mk

index 8bf51ed95fb859c0505d35ade7a9d3a6d1f33a92..2730763872d9774c04efec98cce4df7a31ff7897 100644 (file)
@@ -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) \
                , \