WASM configure: prevent libtool from adding -rpath to link command

Signed-off-by: Michael Stahl <michael.stahl@allotropia.de>
Change-Id: Ided8a2abd781b19275b6fe16f8f47e262fef0541
pull/5687/head
Michael Stahl 2022-11-14 20:33:10 +01:00 committed by Tor Lillqvist
parent 1c73ec45dd
commit 160362e21a
1 changed files with 7 additions and 0 deletions

View File

@ -75,6 +75,13 @@ AC_PROG_CXX
AC_PROG_CC
AC_PROG_LN_S
# override AC_PROG_CXX:
# avoid libtool from adding -rpath when linking
if test "$host_os" = "emscripten"; then
hardcode_libdir_flag_spec=
hardcode_libdir_flag_spec_CXX=
fi
AC_LANG_PUSH([C++])
AS_IF([test `uname -s` = Linux -a "$host_os" != "emscripten"],