makefiles/CreateJars.gmk

Print this page
rev 6477 : imported patch zerobuild.patch

@@ -1026,11 +1026,13 @@
 # all jars can be found in one place when creating images in Images.gmk. It needs to be
 # done here so that clean targets can be simple and accurate.
 $(IMAGES_OUTPUTDIR)/lib/sa-jdi.jar: $(JDK_OUTPUTDIR)/lib/sa-jdi.jar
         $(install-file)
 
-JARS += $(IMAGES_OUTPUTDIR)/lib/sa-jdi.jar
+ifeq ($(INCLUDE_SA), true)
+  JARS += $(IMAGES_OUTPUTDIR)/lib/sa-jdi.jar
+endif
 
 ##########################################################################################
 #
 # sec-bin.zip is used by builds where the corresponding sources are not available
 #