mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
pruneLibtoolFiles: more permissive regex for detecting libtool files
This commit is contained in:
parent
b9d22d3fe8
commit
9cd155f1e2
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ _pruneLibtoolFiles() {
|
|||
# the "old_library" field for static libraries. We are processing only
|
||||
# those .la files that do not describe static libraries.
|
||||
find "$prefix" -type f -name '*.la' \
|
||||
-exec grep -q '^# Generated by libtool' {} \; \
|
||||
-exec grep -q '^# Generated by .*libtool' {} \; \
|
||||
-exec grep -q "^old_library=''" {} \; \
|
||||
-exec sed -i {} -e "/^dependency_libs='[^']/ c dependency_libs='' #pruned" \;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue