python3: add PYTHON3_INC_DIR var to CPPFLAGS
authorAlexandru Ardelean <redacted>
Sun, 19 Oct 2014 07:03:44 +0000 (10:03 +0300)
committerAlexandru Ardelean <redacted>
Mon, 20 Oct 2014 16:13:32 +0000 (19:13 +0300)
The target's PYTHON3_INC_DIR should take precedence over the host's
include dir when cross-compiling.

Signed-off-by: Alexandru Ardelean <redacted>
lang/python3/files/python3-package.mk

index d5028d00203092df0468a166c36a22b79768c88d..ef5fbd6d7456f9555964b93f0fb89b8c32c599c5 100644 (file)
@@ -75,7 +75,7 @@ define Build/Compile/Py3Mod
                CC="$(TARGET_CC)" \
                CCSHARED="$(TARGET_CC) $(FPIC)" \
                CFLAGS="$(TARGET_CFLAGS)" \
-               CPPFLAGS="$(TARGET_CPPFLAGS)" \
+               CPPFLAGS="$(TARGET_CPPFLAGS) -I$(PYTHON3_INC_DIR)" \
                LDFLAGS="$(TARGET_LDFLAGS)" \
                $(3) \
                , \
git clone https://git.99rst.org/PROJECT