Browse Source

Improved postflist_static_lib() to also move .a.* files

misl/sde-wrapper
Alejandro Mery 17 years ago
parent
commit
2e8eaa217c
1 changed files with 9 additions and 5 deletions
  1. +9
    -5
      lib/functions.in

+ 9
- 5
lib/functions.in

@ -299,19 +299,23 @@ function run_check() {
#
postflist_static_lib() {
echo "Processing static lib corrections ..."
egrep '^(lib|lib64)/.*\.(a|la)$' $builddir/flist.txt |
egrep '^(lib|lib64)/.*\.(a\..*|a|la)$' $builddir/flist.txt |
while read fn ; do
[ -e $root/$fn -o -L $root/$fn ] || continue
if [[ $fn = *.a ]] ; then
mv -fv $root/$fn $root/usr/$fn
else
case "$fn" in
*.la)
sed "s,\([ =']\)/lib\(.*\),\1/usr/lib\2,g" \
$root/$fn > $root/usr/$fn
so=${fn%.la}.so
ln -svf $root/$so $root/usr/$so
add_flist $root/usr/$so
rm $root/$fn
fi
;;
*)
mv -fv $root/$fn $root/usr/$fn
;;
esac
add_flist $root/usr/$fn
done

Loading…
Cancel
Save