Remove -f option for codesign

Recent `codesign` seems to emit a "replacing existing signature"
warning even if it was an adhoc signature added by the linker.  Since
"adhoc" signatures do not cause a failure when replaced, it is just
unnecessary and noisy.
This commit is contained in:
Nobuyoshi Nakada 2024-03-06 20:17:44 +09:00
parent 0c2e976894
commit b543a4e9da
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -1102,7 +1102,7 @@ main()
])
AC_CHECK_PROGS(dsymutil, $dsymutils dsymutil)
AS_IF([test -n "$codesign"], [
POSTLINK="{ test -z '\$(RUBY_CODESIGN)' || $codesign -s '\$(RUBY_CODESIGN)' -f \$@; }${POSTLINK:+; $POSTLINK}"
POSTLINK="{ test -z '\$(RUBY_CODESIGN)' || $codesign -s '\$(RUBY_CODESIGN)' \$@; }${POSTLINK:+; $POSTLINK}"
])
AS_IF([test -n "$dsymutil"], [
POSTLINK="$dsymutil \$@ 2>/dev/null${POSTLINK:+; $POSTLINK}"