diff --git a/config/functions b/config/functions index d829f068f0..7166bb8086 100644 --- a/config/functions +++ b/config/functions @@ -873,6 +873,11 @@ is_sequential_build() { [ "${MTWITHLOCKS}" != "yes" ] && return 0 || return 1 } +# arg1: filename (libtool) to remove hardcode rpath when --disable-rpath is not supported by configure +libtool_remove_rpath() { + sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' ${1} + sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' ${1} +} ### PACKAGE HELPERS ### # get variable ($2) for package ($1).