jdk/makefiles/CompileLaunchers.gmk
changeset 17732 79c019dd5279
parent 17506 f44b96992f26
child 21394 131a8af639f4
child 19399 e2e5122cd62e
child 20812 16a6de786164
child 22587 28bea2d65a18
--- a/jdk/makefiles/CompileLaunchers.gmk	Thu May 23 10:47:50 2013 -0700
+++ b/jdk/makefiles/CompileLaunchers.gmk	Wed May 29 14:01:24 2013 +0200
@@ -95,6 +95,9 @@
         $1_PLIST_FILE:=Info-cmdline.plist
         ifneq ($(11),)
             $1_PLIST_FILE:=$(11)
+            ifneq ($$(findstring privileged,$$($1_PLIST_FILE)),)
+                $1_CODESIGN:=true
+            endif
         endif
 
         $1_LDFLAGS += -Wl,-all_load $(JDK_OUTPUTDIR)/objs/libjli_static.a \
@@ -174,7 +177,8 @@
 		  -D "JDK_INTERNAL_NAME=$1" \
 		  -D "JDK_FTYPE=0x1L" \
 		  $7,\
-	MANIFEST:=$(JDK_TOPDIR)/src/windows/resource/java.manifest)
+	MANIFEST:=$(JDK_TOPDIR)/src/windows/resource/java.manifest,\
+	CODESIGN:=$$($1_CODESIGN))
 
     BUILD_LAUNCHERS += $$(BUILD_LAUNCHER_$1)