File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1211,11 +1211,15 @@ define SetupNativeCompilationBody
12111211 $$($1_MT) -nologo -manifest $$($1_MANIFEST) -identity:"$$($1_NAME).exe, version=$$($1_MANIFEST_VERSION)" -outputresource:$$@;#1
12121212 endif
12131213 endif
1214- # On macosx, optionally run codesign on every binary
1214+ # On macosx, optionally run codesign on every binary.
1215+ # Remove signature explicitly first to avoid warnings if the linker
1216+ # added a default adhoc signature.
12151217 ifeq ($(MACOSX_CODESIGN_MODE), hardened)
1218+ $(CODESIGN) --remove-signature $$@
12161219 $(CODESIGN) -f -s "$(MACOSX_CODESIGN_IDENTITY)" --timestamp --options runtime \
12171220 --entitlements $$(call GetEntitlementsFile, $$@) $$@
12181221 else ifeq ($(MACOSX_CODESIGN_MODE), debug)
1222+ $(CODESIGN) --remove-signature $$@
12191223 $(CODESIGN) -f -s - --entitlements $$(call GetEntitlementsFile, $$@) $$@
12201224 endif
12211225 endif
You can’t perform that action at this time.
0 commit comments