changeset 14589:bbdf4444964c

8150179: Static build of libzip is missing JNI_OnLoad_zip entry point Reviewed-by: sherman
author naoto
date Mon, 23 May 2016 14:05:57 -0700
parents ca392a5bf0ef
children d27a73776c05
files src/java.base/share/native/libzip/zip_util.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/native/libzip/zip_util.c	Mon May 23 21:28:39 2016 +0100
+++ b/src/java.base/share/native/libzip/zip_util.c	Mon May 23 14:05:57 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1995, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -77,6 +77,11 @@
 static jint INITIAL_META_COUNT = 2;   /* initial number of entries in meta name array */
 
 /*
+ * Declare library specific JNI_Onload entry if static build
+ */
+DEF_STATIC_JNI_OnLoad
+
+/*
  * The ZFILE_* functions exist to provide some platform-independence with
  * respect to file access needs.
  */