--- old/makefiles/CompileJavaClasses.gmk 2013-10-22 20:57:05.000000000 -0700 +++ new/makefiles/CompileJavaClasses.gmk 2013-10-22 20:57:05.000000000 -0700 @@ -96,11 +96,7 @@ EXCLUDES += com/oracle/security endif -# In the old build, this isn't excluded on macosx, even though it probably -# should be. -ifneq ($(OPENJDK_TARGET_OS), macosx) - EXFILES += WrapperGenerator.java -endif +EXFILES += WrapperGenerator.java ifneq ($(OPENJDK_TARGET_OS), windows) # Exclude Window security related files in src/share/classes @@ -169,7 +165,11 @@ EXFILES += sun/awt/AWTCharset.java endif -ifneq ($(OPENJDK_TARGET_OS), macosx) +ifeq ($(OPENJDK_TARGET_OS), macosx) + # exclude all X11 on Mac, we can't exclude some like below or we'll have compilation errors + EXCLUDES += sun/awt/X11 +else + # TBD: figure out how to eliminate this long list EXFILES += sun/awt/X11/ScreenFormat.java \ sun/awt/X11/XArc.java \ sun/awt/X11/XChar2b.java \