ICU: Build with -fno-semantic-interposition -Wl,-Bsymbolic-functions.

This significantly improves startup time, as the runtime
linker has a lot fewer symbols to resolve.

Also disable ICU 75 as nothing uses it yet (nor should it,
while we stick to ICU 74 generally.)
This commit is contained in:
Augustin Cavalier
2024-09-17 12:47:29 -04:00
parent c9ec234c5c
commit 1d32ee97ee
2 changed files with 15 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ wrapping when displaying the text."
HOMEPAGE="http://www.icu-project.org"
COPYRIGHT="1995-2020 IBM Corporation and others."
LICENSE="ICU"
REVISION="3"
REVISION="4"
SOURCE_URI="https://github.com/unicode-org/icu/releases/download/release-${portVersion/\./-}/icu4c-${portVersion/\./_}-src.tgz"
CHECKSUM_SHA256="86ce8e60681972e60e4dcb2490c697463fcec60dd400a5f9bffba26d0b52b8d0"
SOURCE_URI_2="https://github.com/unicode-org/icu/releases/download/release-${portVersion/\./-}/icu4c-${portVersion/\./_}-data.zip#noarchive"
@@ -49,7 +49,7 @@ CHECKSUM_SHA256_2="67d5ab39c5187e1dd0fed60a3fe52794dce9784b4c045cb85e19f5d317fd7
SOURCE_DIR="icu"
PATCHES="icu74-$portVersion.patchset"
ARCHITECTURES="?all !x86_gcc2 ?arm ?sparc ?arm64 ppc ?riscv64 x86_64"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
@@ -144,6 +144,12 @@ BUILD()
unzip -oq ../../../sources-2/icu4c-*-data.zip
rm -f data/in/icudt??l.dat
# optimize & make symbol lookups faster (and prevent symbols being overridden)
export CCFLAGS=-fno-semantic-interposition
export CXXFLAGS=-fno-semantic-interposition
export LDFLAGS=-Wl,-Bsymbolic-functions
autoconf
runConfigure ./configure \
--disable-samples --disable-extras --with-data-packaging=archive

View File

@@ -49,7 +49,7 @@ CHECKSUM_SHA256_2="a5104212dc317a64f9b035723ea706f2f4fd5a0f37b7923fae7aeb9d1d006
SOURCE_DIR="icu"
PATCHES="icu75-$portVersion.patchset"
ARCHITECTURES="?all !x86_gcc2 ?arm ?sparc ?arm64 ?riscv64 x86_64"
ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
@@ -148,8 +148,14 @@ BUILD()
#rm -rf tools/tzcode/vanguard
#cp ../../../sources-3/tzdata*.tar.gz tools/tzcode/
# optimize & make symbol lookups faster (and prevent symbols being overridden)
export CCFLAGS=-fno-semantic-interposition
export CXXFLAGS=-fno-semantic-interposition
export LDFLAGS=-Wl,-Bsymbolic-functions
unzip -oq ../../../sources-2/icu4c-*-data.zip
rm -f data/in/icudt??l.dat
autoconf
runConfigure ./configure \
--disable-samples --disable-extras --with-data-packaging=archive