8293965: Code signing warnings after JDK-8293550
Reviewed-by: mikael, ihse
This commit is contained in:
parent
8082c24a0d
commit
f91762f56e
@ -1209,11 +1209,15 @@ define SetupNativeCompilationBody
|
|||||||
$$($1_MT) -nologo -manifest $$($1_MANIFEST) -identity:"$$($1_NAME).exe, version=$$($1_MANIFEST_VERSION)" -outputresource:$$@;#1
|
$$($1_MT) -nologo -manifest $$($1_MANIFEST) -identity:"$$($1_NAME).exe, version=$$($1_MANIFEST_VERSION)" -outputresource:$$@;#1
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
# On macosx, optionally run codesign on every binary
|
# On macosx, optionally run codesign on every binary.
|
||||||
|
# Remove signature explicitly first to avoid warnings if the linker
|
||||||
|
# added a default adhoc signature.
|
||||||
ifeq ($(MACOSX_CODESIGN_MODE), hardened)
|
ifeq ($(MACOSX_CODESIGN_MODE), hardened)
|
||||||
|
$(CODESIGN) --remove-signature $$@
|
||||||
$(CODESIGN) -f -s "$(MACOSX_CODESIGN_IDENTITY)" --timestamp --options runtime \
|
$(CODESIGN) -f -s "$(MACOSX_CODESIGN_IDENTITY)" --timestamp --options runtime \
|
||||||
--entitlements $$(call GetEntitlementsFile, $$@) $$@
|
--entitlements $$(call GetEntitlementsFile, $$@) $$@
|
||||||
else ifeq ($(MACOSX_CODESIGN_MODE), debug)
|
else ifeq ($(MACOSX_CODESIGN_MODE), debug)
|
||||||
|
$(CODESIGN) --remove-signature $$@
|
||||||
$(CODESIGN) -f -s - --entitlements $$(call GetEntitlementsFile, $$@) $$@
|
$(CODESIGN) -f -s - --entitlements $$(call GetEntitlementsFile, $$@) $$@
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user