diff --git a/scripts/brp-remove-la-files b/scripts/brp-remove-la-files index 58c513bf88..b1303c272d 100755 --- a/scripts/brp-remove-la-files +++ b/scripts/brp-remove-la-files @@ -5,6 +5,10 @@ if [ -z "$RPM_BUILD_ROOT" ] || [ "$RPM_BUILD_ROOT" = "/" ]; then exit 0 fi +find "$RPM_BUILD_ROOT" -type l -name '*.la' 2>/dev/null -print0 | + xargs -0 grep --fixed-strings '.la - a libtool library file' --files-with-matches --null | + xargs -0 rm --force + find "$RPM_BUILD_ROOT" -type f -name '*.la' 2>/dev/null -print0 | xargs -0 grep --fixed-strings '.la - a libtool library file' --files-with-matches --null | xargs -0 rm --force