icu: specify cross compile variables 3993/head
authorHirokazu MORIKAWA <morikw2@gmail.com>
Mon, 13 Feb 2017 05:43:12 +0000 (14:43 +0900)
committerHirokazu MORIKAWA <morikw2@gmail.com>
Mon, 13 Feb 2017 05:43:12 +0000 (14:43 +0900)
Maintainer: me
Compile tested: brcm2708
                aarch64_cortex-a53+neon-vfpv4_musl
                LEDE head r3426-4c09f99
Run tested: NONE

Description:
buildbots fail on link ARM object.

   error: xxxxxx.o uses VFP register arguments,

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
libs/icu/Makefile

index 07ec7d81ce708b026e50b48adf20dbdaab753462..f499fe1c3479a52435e913116316cdc5d5d5baa2 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=icu4c
 PKG_VERSION:=58.2
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-58_2-src.tgz
 PKG_SOURCE_URL:=http://download.icu-project.org/files/$(PKG_NAME)/$(PKG_VERSION)
@@ -41,9 +41,13 @@ define Package/icu
 endef
 
 CONFIGURE_CMD:= ./runConfigureICU
-CONFIGURE_VARS:=
 CONFIGURE_ARGS:= \
        Linux/gcc \
+       CC="$(TARGET_CC)" \
+       CXX="$(TARGET_CXX)" \
+       --target=$(GNU_TARGET_NAME) \
+       --host=$(GNU_TARGET_NAME) \
+       --build=$(GNU_HOST_NAME) \
        --disable-debug \
        --enable-release \
        --enable-shared \
@@ -60,9 +64,10 @@ CONFIGURE_ARGS:= \
        --prefix=/usr
 
 HOST_CONFIGURE_CMD:= ./runConfigureICU
-HOST_CONFIGURE_VARS:=
 HOST_CONFIGURE_ARGS:= \
        Linux/gcc \
+       CC="$(HOSTCC)" \
+       CXX="$(HOSTCXX)" \
        --disable-debug \
        --enable-release \
        --enable-shared \