From 0891bff2b05eb28687724903b6ff5f4f5e4cda37 Mon Sep 17 00:00:00 2001 From: q66 Date: Fri, 21 Dec 2018 20:52:00 +0100 Subject: [PATCH] icu: fix cross-build When crossing to certain platforms, particularly when target platform is binary compatible with host (e.g. X to X-musl). we need to reset the LDFLAGS as otherwise -Lcross-toolchain/usr/lib would leak into the host build and cause incorrect linkage, preventing configuration or build. --- srcpkgs/icu/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/icu/template b/srcpkgs/icu/template index 8b3a5c132d..3043b531d4 100644 --- a/srcpkgs/icu/template +++ b/srcpkgs/icu/template @@ -35,7 +35,7 @@ pre_configure() { cd host-build env CC=cc LD=ld CXX=g++ AR=ar RANLIB=ranlib \ AS=as STRIP=strip CFLAGS="-Os -fPIE" CXXFLAGS="-Os -fPIE" \ - ../configure --prefix=/ + LDFLAGS="" ../configure --prefix=/ make ${makejobs} mkdir -p ${wrksrc}/host-icu/config cp config/icucross.* ${wrksrc}/host-icu/config