Skip to content

Commit 6c4331d

Browse files
authored
[build] Remove runpath from build host from shared ICU libraries on linux (#65692)
1 parent 76f4aac commit 6c4331d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utils/build-script-impl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2674,12 +2674,13 @@ for host in "${ALL_HOSTS[@]}"; do
26742674
fi
26752675

26762676
with_pushd "${LIBICU_BUILD_DIR}" \
2677-
call env CXXFLAGS=-fPIC "${LIBICU_SOURCE_DIR}"/icu4c/source/runConfigureICU Linux \
2677+
call env CXXFLAGS=-fPIC LDFLAGS='-Wl,-rpath=\$$ORIGIN' \
2678+
"${LIBICU_SOURCE_DIR}"/icu4c/source/runConfigureICU Linux \
26782679
${icu_build_variant_arg} --prefix=${ICU_TMPINSTALL} \
26792680
${libicu_enable_debug} \
26802681
--enable-renaming --with-library-suffix=swift \
26812682
--libdir=${ICU_TMPLIBDIR} \
2682-
--enable-shared --enable-static --enable-rpath \
2683+
--enable-shared --enable-static \
26832684
--enable-strict --disable-icuio \
26842685
--disable-plugins --disable-dyload --disable-extras \
26852686
--disable-samples --disable-layoutex --with-data-packaging=auto

0 commit comments

Comments
 (0)