From: | Mike Frysinger <vapier@g.o> | ||
---|---|---|---|
To: | gentoo-dev@l.g.o | ||
Subject: | Re: [gentoo-dev] [PATCH] prune_libtool_files(): go into .a removal only when .a exists. | ||
Date: | Fri, 15 Jun 2012 15:14:27 | ||
Message-Id: | 201206151111.58918.vapier@gentoo.org | ||
In Reply to: | [gentoo-dev] [PATCH] prune_libtool_files(): go into .a removal only when .a exists. by "Michał Górny" |
1 | On Friday 15 June 2012 09:32:18 Michał Górny wrote: |
2 | > # Remove static libs we're not supposed to link against. |
3 | > if grep -q '^shouldnotlink=yes$' "${f}"; then |
4 | > - einfo "Removing unnecessary ${archivefile#${D%/}}" |
5 | > - rm -f "${archivefile}" |
6 | > + if [[ -f ${archivefile} ]]; then |
7 | > + einfo "Removing unnecessary ${archivefile#${D%/}} (static |
8 | plugin)" |
9 | > + rm -f "${archivefile}" |
10 | > + fi |
11 | |
12 | highly unlikely, but this would skip symlinks that are broken in $D, but valid |
13 | once merged into $ROOT |
14 | -mike |
File name | MIME type |
---|---|
signature.asc | application/pgp-signature |
Subject | Author |
---|---|
Re: [gentoo-dev] [PATCH] prune_libtool_files(): go into .a removal only when .a exists. | "Michał Górny" <mgorny@g.o> |