Skip to content

Commit

Permalink
python: add _PYTHON_HOST_PLATFORM env var when cross-compiling C exte…
Browse files Browse the repository at this point in the history
…nsions

This mostly helps to avoid confusion when modules are cross-compiled.
Otherwise build folders are named with the host's platform name.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
  • Loading branch information
commodo committed Oct 19, 2014
1 parent a1f86a6 commit 0141057
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lang/python/files/python-package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ define Build/Compile/PyMod
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="$(TARGET_CPPFLAGS) -I$(PYTHON_INC_DIR)" \
LDFLAGS="$(TARGET_LDFLAGS) -lpython$(PYTHON_VERSION)" \
_PYTHON_HOST_PLATFORM="linux-$(ARCH)" \
$(3) \
, \
./setup.py $(2) \
Expand Down

0 comments on commit 0141057

Please sign in to comment.