Browse Source

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 <ardeleanalex@gmail.com>
lilik-openwrt-22.03
Alexandru Ardelean 10 years ago
parent
commit
bfb286ff62
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lang/python/files/python-package.mk

+ 1
- 1
lang/python/files/python-package.mk View 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) \
, \


Loading…
Cancel
Save