icu: build static with -fPIC

This commit is contained in:
Đoàn Trần Công Danh 2021-08-13 09:46:45 +07:00
parent 8f4f955bfa
commit 4ed981ac48

View file

@ -3,7 +3,7 @@
# next soname bump.
pkgname=icu
version=69.1
revision=1
revision=2
wrksrc=icu
build_wrksrc=source
build_style=gnu-configure
@ -18,6 +18,9 @@ homepage="https://home.unicode.org/"
distfiles="https://github.com/unicode-org/icu/releases/download/release-${version//./-}/icu4c-${version//./_}-src.tgz"
checksum=4cba7b7acd1d3c42c44bb0c14be6637098c7faf2b330ce876bc5f3b915d09745
CFLAGS=-fPIC
CXXFLAGS=-fPIC
if [ "$CROSS_BUILD" ]; then
configure_args+=" --with-cross-build=${XBPS_BUILDDIR}/${wrksrc}/host-icu"
fi