From fa5b0397cbe9978fc90b1fb7525d4a13ce1469b1 Mon Sep 17 00:00:00 2001 From: Butta Date: Wed, 15 Mar 2023 01:05:08 +0530 Subject: [PATCH] [build] Remove runpath from build host from shared ICU libraries on linux --- utils/build-script-impl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/build-script-impl b/utils/build-script-impl index 3b9c66ee353d6..d8a7b6d5951ac 100755 --- a/utils/build-script-impl +++ b/utils/build-script-impl @@ -2674,12 +2674,13 @@ for host in "${ALL_HOSTS[@]}"; do fi with_pushd "${LIBICU_BUILD_DIR}" \ - call env CXXFLAGS=-fPIC "${LIBICU_SOURCE_DIR}"/icu4c/source/runConfigureICU Linux \ + call env CXXFLAGS=-fPIC LDFLAGS='-Wl,-rpath=\$$ORIGIN' \ + "${LIBICU_SOURCE_DIR}"/icu4c/source/runConfigureICU Linux \ ${icu_build_variant_arg} --prefix=${ICU_TMPINSTALL} \ ${libicu_enable_debug} \ --enable-renaming --with-library-suffix=swift \ --libdir=${ICU_TMPLIBDIR} \ - --enable-shared --enable-static --enable-rpath \ + --enable-shared --enable-static \ --enable-strict --disable-icuio \ --disable-plugins --disable-dyload --disable-extras \ --disable-samples --disable-layoutex --with-data-packaging=auto