gmp: add host compile
Currently, any package that uses host compile and depends on libgmp.so will fail. This is because gmp is not compile for host machine. So, staging_dir/host has only static lib for gmp $ ls staging_dir/host/lib/libgmp* -1 staging_dir/host/lib/libgmp.a staging_dir/host/lib/libgmp.la staging_dir/host/lib/libgmpxx.a staging_dir/host/lib/libgmpxx.la Addind host compile in gmp, the dependent package can use: PKG_BUILD_DEPENDS:=gmp/host That will compile gmp to staging_dir/host with *.so files Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com> SVN-Revision: 42196
This commit is contained in:
parent
406d53c697
commit
7ba7ddf88e
1 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@ PKG_FIXUP:=autoreconf
|
||||||
|
|
||||||
PKG_USE_MIPS16:=0
|
PKG_USE_MIPS16:=0
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/host-build.mk
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/libgmp
|
define Package/libgmp
|
||||||
|
@ -44,7 +45,6 @@ CONFIGURE_ARGS += \
|
||||||
--without-readline \
|
--without-readline \
|
||||||
--disable-fft \
|
--disable-fft \
|
||||||
|
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(call Build/Compile/Default, \
|
$(call Build/Compile/Default, \
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||||
|
@ -66,3 +66,4 @@ define Package/libgmp/install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,libgmp))
|
$(eval $(call BuildPackage,libgmp))
|
||||||
|
$(eval $(call HostBuild))
|
||||||
|
|
Loading…
Reference in a new issue