Merge "ANDROID BACKPORT 8189131: Open-source the Oracle JDK Root Certificates"
diff --git a/make/lib/SecurityLibraries.gmk b/make/lib/SecurityLibraries.gmk
index be73c52..3ba8bbc 100644
--- a/make/lib/SecurityLibraries.gmk
+++ b/make/lib/SecurityLibraries.gmk
@@ -28,6 +28,8 @@
 ifeq ($(OPENJDK_TARGET_OS), macosx)
   # JavaNativeFoundation framework not supported in static builds 
   ifneq ($(STATIC_BUILD), true)
+  # ANDROID: disable libosxsecurity library, it requires an Apple runtime library to build
+  ifdef NEVER_BUILD
 
   ################################################################################
 
@@ -63,4 +65,5 @@
   ################################################################################
 
   endif
+  endif
 endif
diff --git a/src/java.desktop/share/native/libfontmanager/layout/LEInsertionList.h b/src/java.desktop/share/native/libfontmanager/layout/LEInsertionList.h
index 231b5f6..56f9688 100644
--- a/src/java.desktop/share/native/libfontmanager/layout/LEInsertionList.h
+++ b/src/java.desktop/share/native/libfontmanager/layout/LEInsertionList.h
@@ -101,7 +101,7 @@
     /**
      * The destructor.
      */
-    ~LEInsertionList();
+    virtual ~LEInsertionList();
 
     /**
      * Add an entry to the insertion list.