From: Harald Hoyer Date: Fri, 20 Jun 2014 09:19:49 +0000 (+0200) Subject: dracut.sh: add libgcc_s, if libpthread is installed X-Git-Tag: 038~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dcc4830530ae70eb7151f8b6923b36123d13555;p=thirdparty%2Fdracut.git dracut.sh: add libgcc_s, if libpthread is installed workaround the fact, that pthread_cancel() wants to dlopen libgcc_s.so.1 --- diff --git a/dracut.sh b/dracut.sh index c4163bcfe..04bb3398a 100755 --- a/dracut.sh +++ b/dracut.sh @@ -1348,6 +1348,15 @@ if [[ $kernel_only != yes ]]; then | xargs -r -0 $DRACUT_INSTALL ${initdir:+-D "$initdir"} -R ${DRACUT_FIPS_MODE:+-H} -- dinfo "*** Resolving executable dependencies done***" fi + + # libpthread workaround: pthread_cancel wants to dlopen libgcc_s.so + for _dir in $libdirs; do + for _f in "$_dir/libpthread.so"*; do + [[ -e "$_f" ]] || continue + inst_libdir_file "libgcc_s.so*" + break 2 + done + done fi while pop include_src src && pop include_target tgt; do