From a02652c16a50435015172708608d75c0990b5a3a Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Sun, 7 Jul 2024 19:26:17 +0800 Subject: [PATCH] Awt2dLibraries: add -fnested-functions --- jdk/make/lib/Awt2dLibraries.gmk | 1 + 1 file changed, 1 insertion(+) diff --git jdk/make/lib/Awt2dLibraries.gmk jdk/make/lib/Awt2dLibraries.gmk index 01e0369017..cd579f7a9a 100644 --- jdk/make/lib/Awt2dLibraries.gmk +++ jdk/make/lib/Awt2dLibraries.gmk @@ -1370,6 +1370,7 @@ ifeq ($(OPENJDK_TARGET_OS), macosx) OPTIMIZATION := LOW, \ CFLAGS := $(CFLAGS_JDKLIB) \ $(X_CFLAGS) \ + -fnested-functions \ $(X_LIBS) \ $(foreach dir, $(LIBAWT_LWAWT_DIRS), -I$(dir)) \ -I$(JDK_TOPDIR)/src/macosx/native/sun/osxapp \