-+ local g=
-+ $strip_g && case "$(file -bi "$2")" in
-+ application/x-sharedlib,*) g=-g ;;
-+ esac
-+ eu-strip --remove-comment $g -f "$1" "$2" || exit
++ local t=$(mktemp "/tmp/rpm.stripped.XXXXXX")
++ eu-strip --remove-comment -f "$1" "$2" -o "$t" || exit
++ rm -f "$t"