Skip to content

Commit 2895af8

Browse files
committed
[build] Remove runpath from build host from shared ICU libraries on linux
1 parent 7727ce7 commit 2895af8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utils/build-script-impl

+3-2
Original file line numberDiff line numberDiff line change
@@ -2567,12 +2567,13 @@ for host in "${ALL_HOSTS[@]}"; do
25672567
fi
25682568

25692569
with_pushd "${LIBICU_BUILD_DIR}" \
2570-
call env CXXFLAGS=-fPIC "${LIBICU_SOURCE_DIR}"/icu4c/source/runConfigureICU Linux \
2570+
call env CXXFLAGS=-fPIC LDFLAGS=-Wl,-rpath=\\\$ORIGIN \
2571+
"${LIBICU_SOURCE_DIR}"/icu4c/source/runConfigureICU Linux \
25712572
${icu_build_variant_arg} --prefix=${ICU_TMPINSTALL} \
25722573
${libicu_enable_debug} \
25732574
--enable-renaming --with-library-suffix=swift \
25742575
--libdir=${ICU_TMPLIBDIR} \
2575-
--enable-shared --enable-static --enable-rpath \
2576+
--enable-shared --enable-static \
25762577
--enable-strict --disable-icuio \
25772578
--disable-plugins --disable-dyload --disable-extras \
25782579
--disable-samples --disable-layoutex --with-data-packaging=auto

0 commit comments

Comments
 (0)