python3: add PYTHON3_INC_DIR var to CPPFLAGS

The target's PYTHON3_INC_DIR should take precedence over the host's
include dir when cross-compiling.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
Alexandru Ardelean 2014-10-19 10:03:44 +03:00 committed by Alexandru Ardelean
parent f729ba98c5
commit 3edeed3f4d
1 changed files with 1 additions and 1 deletions

View 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) \
, \