提交 bc345916 编写于 作者: D dbuck

6571600: JNI use results in UnsatisfiedLinkError looking for libmawt.so

Summary: Fix is to call dladdr with name less likely to cause name conflict.
Reviewed-by: serb, anthony
上级 4e697e8c
/*
* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2000, 2014, 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
......@@ -109,7 +109,7 @@ AWT_OnLoad(JavaVM *vm, void *reserved)
jvm = vm;
/* Get address of this library and the directory containing it. */
dladdr((void *)JNI_OnLoad, &dlinfo);
dladdr((void *)AWT_OnLoad, &dlinfo);
realpath((char *)dlinfo.dli_fname, buf);
len = strlen(buf);
p = strrchr(buf, '/');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册