From b543a4e9dae2678722f579f768ac6b41541abf71 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 6 Mar 2024 20:17:44 +0900 Subject: [PATCH] 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. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 8be679667d..e816e0ea4e 100644 --- a/configure.ac +++ b/configure.ac @@ -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}"