URL:=http://www.riverbankcomputing.co.uk/software/sip/download
endef
+
+# ===> TARGET <===
+
+EXTRA_CFLAGS:=\
+ $(FPIC)
+
define Build/Configure
$(INSTALL_DIR) "$(PYTHON_SIP_CONFIG_TEMPLATE_DIR)"; \
$(CP) ./files/sipconfig.macros.template "$(PYTHON_SIP_CONFIG_TEMPLATE)"; \
CC="$(TARGET_CROSS)gcc" \
CXX="$(TARGET_CROSS)g++" \
LINK="$(TARGET_CROSS)g++" \
- CFLAGS="$(TARGET_CFLAGS)" \
- CXXFLAGS="$(TARGET_CFLAGS)"
+ CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
+ CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)"
endef
define Build/InstallDev
CC="$(TARGET_CROSS)gcc" \
CXX="$(TARGET_CROSS)g++" \
LINK="$(TARGET_CROSS)g++" \
- CFLAGS="$(TARGET_CFLAGS)" \
- CXXFLAGS="$(TARGET_CFLAGS)" \
+ CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
+ CXXFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
DESTDIR="" \
install
endef
$(CP) $(PKG_INSTALL_DIR)/$(PYTHON_PKG_DIR)/* $(1)/$(PYTHON_PKG_DIR)
endef
+
+# ===> HOST <===
+
define Host/Configure
( cd "$(HOST_BUILD_DIR)"; \
export PYTHONDONTWRITEBYTECODE=1; \