mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 03:53:47 +00:00
pruneLibtoolFiles: more permissive regex for detecting libtool files
This commit is contained in:
parent
b9d22d3fe8
commit
9cd155f1e2
@ -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 New Issue
Block a user