Browse Source

lib/functions.in: improved to move '/lib/foo.so' symlinks into '/usr/lib' because they are only needed at compile time

user/chris/test/patchcksum
Christian Wiese 13 years ago
parent
commit
179f3d40e2
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      lib/functions.in

+ 7
- 1
lib/functions.in

@ -313,7 +313,7 @@ function run_check() {
#
postflist_static_lib() {
echo "Processing static lib corrections ..."
egrep '^(lib|lib64)/.*\.(a\..*|a|la)$' $builddir/flist.txt |
egrep '^(lib|lib64)/.*\.(a\..*|a|la|so)$' $builddir/flist.txt |
while read fn ; do
[ -e $root/$fn -o -L $root/$fn ] || continue
@ -329,6 +329,12 @@ postflist_static_lib() {
*)
mv -fv $root/$fn $root/usr/$fn
;;
*.so)
if [ -L "$root/$fn" ]; then
ln -svf "$root/lib/$( readlink $fn )" "$root/usr/$fn"
rm -f "$root/$fn"
fi
;;
esac
add_flist $root/usr/$fn
done

Loading…
Cancel
Save