From v4hn, 4 Years ago, written in Plain Text.
Embed
  1. if [[ "${OLD_VERSION%%.*}" = 4 ]]; then
  2.   # stdc++.so.6 ABI used by freshly compile modules
  3.   # changed without changing so names
  4.   # rebuilding everything avoids this error in modules which depend on modules
  5.   # which still use the old ABI:
  6.   # > undefined reference to `get_defs[abi:cxx11](unsigned long, bool (*)(unsigned long))'
  7.   CPP_MODULES=$( ( find /usr/lib -name '*.so' ; ls /bin/* /sbin/* /lib/*.so /usr/bin/* /usr/sbin/* ) | while read x
  8.   do
  9.     [[ -n "$(ldd $x | fgrep libstdc++.so.6)" ]] && lvu from $x;
  10.   done | cut -d: -f1 | sort -u )
  11.  
  12.   CPP_MODULES=$(sort_by_dependency $CPP_MODULES)
  13.  
  14.   for m in $CPP_MODULES; do
  15.     lin -c $m
  16.   done
  17. fi
  18.