blob: 58c513bf88288e7173e8b34122235bf718a0725f (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
# If using normal root, avoid changing anything.
if [ -z "$RPM_BUILD_ROOT" ] || [ "$RPM_BUILD_ROOT" = "/" ]; then
exit 0
fi
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
|