Do not pass -B to python. It might not like it.

git-svn-id: svn://svn.openwrt.org/openwrt/packages@23370 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mb 2010-10-09 17:53:06 +00:00
parent 168d935cdf
commit 0604cfba86
2 changed files with 7 additions and 4 deletions

View File

@ -98,9 +98,10 @@ define Build/Configure
echo "LIBDIR_OPENGL $(TARGET_LIBDIRS)" >> $(SIPCFGFILE); \ echo "LIBDIR_OPENGL $(TARGET_LIBDIRS)" >> $(SIPCFGFILE); \
echo "LIBDIR_X11 $(TARGET_LIBDIRS)" >> $(SIPCFGFILE); \ echo "LIBDIR_X11 $(TARGET_LIBDIRS)" >> $(SIPCFGFILE); \
( \ ( \
export PYTHONPATH="$(STAGING_DIR_HOST)/$(PYTHON_PKG_DIR)"; \
cd "$(PKG_BUILD_DIR)"; \ cd "$(PKG_BUILD_DIR)"; \
python -B ./configure.py \ export PYTHONPATH="$(STAGING_DIR_HOST)/$(PYTHON_PKG_DIR)"; \
export PYTHONDONTWRITEBYTECODE=1; \
python ./configure.py \
--use-arch="$(ARCH)" \ --use-arch="$(ARCH)" \
--qmake="$(STAGING_DIR_HOST)/bin/qmake" \ --qmake="$(STAGING_DIR_HOST)/bin/qmake" \
--qmake-spec="$(STAGING_DIR)/usr/share/mkspecs/linux-openwrt-g++" \ --qmake-spec="$(STAGING_DIR)/usr/share/mkspecs/linux-openwrt-g++" \

View File

@ -47,7 +47,8 @@ define Build/Configure
echo "AR $(TARGET_CROSS)ar cqs" >> $(PYTHON_SIP_CONFIG_TEMPLATE); \ echo "AR $(TARGET_CROSS)ar cqs" >> $(PYTHON_SIP_CONFIG_TEMPLATE); \
echo "STRIP $(STRIP)" >> $(PYTHON_SIP_CONFIG_TEMPLATE); \ echo "STRIP $(STRIP)" >> $(PYTHON_SIP_CONFIG_TEMPLATE); \
( cd "$(PKG_BUILD_DIR)"; \ ( cd "$(PKG_BUILD_DIR)"; \
python -E -B ./configure.py \ export PYTHONDONTWRITEBYTECODE=1; \
python -E ./configure.py \
--bindir=$(PKG_INSTALL_DIR)/usr/bin \ --bindir=$(PKG_INSTALL_DIR)/usr/bin \
--destdir=$(PKG_INSTALL_DIR)/$(PYTHON_PKG_DIR) \ --destdir=$(PKG_INSTALL_DIR)/$(PYTHON_PKG_DIR) \
--incdir=$(PKG_INSTALL_DIR)/usr/include \ --incdir=$(PKG_INSTALL_DIR)/usr/include \
@ -89,7 +90,8 @@ endef
define Host/Configure define Host/Configure
( cd "$(HOST_BUILD_DIR)"; \ ( cd "$(HOST_BUILD_DIR)"; \
python -E -B ./configure.py \ export PYTHONDONTWRITEBYTECODE=1; \
python -E ./configure.py \
--bindir=$(STAGING_DIR_HOST)/usr/bin \ --bindir=$(STAGING_DIR_HOST)/usr/bin \
--destdir=$(STAGING_DIR_HOST)/$(PYTHON_PKG_DIR) \ --destdir=$(STAGING_DIR_HOST)/$(PYTHON_PKG_DIR) \
--incdir=$(STAGING_DIR_HOST)/usr/include \ --incdir=$(STAGING_DIR_HOST)/usr/include \