Browse Source

lib/functions.in: improve postflist_static_lib() to also move .o files from /lib -> /usr/lib

libc's install special object files like Scrt1.o, crt1.o, crti.o and crtn.o.
This files are not needed at runtime, so it makes no sense to keep them in
/lib.
stable/0.6
Christian Wiese 10 years ago
parent
commit
9d7b6b9b2d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/functions.in

+ 2
- 2
lib/functions.in

@ -436,7 +436,7 @@ postflist_dirty_symlinks() {
#
postflist_static_lib() {
echo "Processing static lib corrections ..."
egrep '^(lib|lib64)/.*\.(a\..*|a|la|so|pc)$' $builddir/flist.txt |
egrep '^(lib|lib64)/.*\.(a\..*|a|la|o|so|pc)$' $builddir/flist.txt |
while read fn ; do
local ffn="$root/$fn" ffn2="$root/usr/$fn"
[ -e "$ffn" -o -L "$ffn" ] || continue
@ -447,7 +447,7 @@ postflist_static_lib() {
"$ffn" > "$ffn2"
rm "$ffn"
;;
*.a|*.pc)
*.a|*.o|*.pc)
mv -fv "$ffn" "$ffn2"
;;
*.so)

Loading…
Cancel
Save