Merge pull request #4708 from commodo/python-cffi-fix
libffi: fix location of host side headers ; python,python3: set correct build flags to host pip build
This commit is contained in:
commit
24fb67a70d
1 changed files with 11 additions and 1 deletions
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libffi
|
PKG_NAME:=libffi
|
||||||
PKG_VERSION:=3.2.1
|
PKG_VERSION:=3.2.1
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=ftp://sourceware.org/pub/libffi/
|
PKG_SOURCE_URL:=ftp://sourceware.org/pub/libffi/
|
||||||
|
@ -78,5 +78,15 @@ define Package/libffi/install
|
||||||
$(1)/usr/lib/
|
$(1)/usr/lib/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Host/Install
|
||||||
|
$(call Host/Install/Default)
|
||||||
|
# Adjust host libffi headers ; the default rule does
|
||||||
|
# not seem to install them to the proper include folder
|
||||||
|
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/include
|
||||||
|
$(CP) \
|
||||||
|
$(STAGING_DIR_HOSTPKG)/lib/libffi-$(PKG_VERSION)/include/*.h \
|
||||||
|
$(STAGING_DIR_HOSTPKG)/include
|
||||||
|
endef
|
||||||
|
|
||||||
$(eval $(call HostBuild))
|
$(eval $(call HostBuild))
|
||||||
$(eval $(call BuildPackage,libffi))
|
$(eval $(call BuildPackage,libffi))
|
||||||
|
|
Loading…
Reference in a new issue