[Mageia-dev] executable libraries

Anssi Hannula anssi at mageia.org
Thu Mar 1 22:54:59 CET 2012

01.03.2012 23:36, Pascal Terjan kirjoitti:
> I would say it doesn't matter and would not spend any time on it


# Strip ELF binaries
find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*.debug" -type f \
                     \( -perm -0100 -or -perm -0010 -or -perm -0001 \) \
                     -print |
file -N -f - | sed -n -e 's/^\(.*\):[   ]*.*ELF.*, not stripped/\1/p' |
xargs --no-run-if-empty stat -c '%h %D_%i %n' |
while read nlinks inum f; do

Looks like debug packages and/or stripping won't work for non-executable
shared libraries.

Anssi Hannula

More information about the Mageia-dev mailing list