Changeset 42369


Ignore:
Timestamp:
2014-09-01T15:21:38+02:00 (3 years ago)
Author:
blogic
Message:

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@…>

Backport of r42196

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/barrier_breaker/package/libs/gmp/Makefile

    r41247 r42369  
    2323PKG_USE_MIPS16:=0 
    2424 
     25include $(INCLUDE_DIR)/host-build.mk 
    2526include $(INCLUDE_DIR)/package.mk 
    2627 
     
    4546        --disable-fft \ 
    4647 
    47  
    4848define Build/Compile 
    4949        $(call Build/Compile/Default, \ 
     
    6767 
    6868$(eval $(call BuildPackage,libgmp)) 
     69$(eval $(call HostBuild)) 
Note: See TracChangeset for help on using the changeset viewer.