jdk/make/common/shared/Defs-java.gmk
changeset 12047 320a714614e9
parent 10115 eb08d08c7ef7
child 12684 f438283ab987
--- a/jdk/make/common/shared/Defs-java.gmk	Tue Mar 06 10:25:45 2012 +0800
+++ b/jdk/make/common/shared/Defs-java.gmk	Tue Mar 06 20:34:38 2012 +0000
@@ -66,7 +66,11 @@
    -XX:-PrintVMOptions -XX:+UnlockDiagnosticVMOptions -XX:-LogVMOutput
 
 # JVM options
-JAVA_JVM_FLAGS = $(JAVA_HOTSPOT_DISABLE_PRINT_VMOPTIONS)
+ifeq ($(PLATFORM), macosx)
+  JAVA_JVM_FLAGS = $(JAVA_HOTSPOT_DISABLE_PRINT_VMOPTIONS) -Djava.awt.headless=true
+else
+  JAVA_JVM_FLAGS = $(JAVA_HOTSPOT_DISABLE_PRINT_VMOPTIONS)
+endif
 
 ifeq ($(ADD_CLIENT_VM_OPTION), true)
   JAVA_JVM_FLAGS += -client