PYTHON_THRIFT_SITE = http://pypi.python.org/packages/source/t/thrift
PYTHON_THRIFT_LICENSE = Apache-2.0
PYTHON_THRIFT_LICENSE_FILES = README
-
PYTHON_THRIFT_DEPENDENCIES = python
define PYTHON_THRIFT_BUILD_CMDS
(cd $(@D); \
- PYTHONXCPREFIX="$(STAGING_DIR)/usr/" \
- LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
+ CC="$(TARGET_CC)" \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ LDSHARED="$(TARGET_CROSS)gcc -shared" \
+ CROSS_COMPILING=yes \
+ _python_sysroot=$(STAGING_DIR) \
+ _python_srcdir=$(BUILD_DIR)/python$(PYTHON_VERSION) \
+ _python_prefix=/usr \
+ _python_exec_prefix=/usr \
$(HOST_DIR)/usr/bin/python setup.py build)
endef