Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
b5a6bb39
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
b5a6bb39
编写于
1月 14, 2011
作者:
O
ohair
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6950375: Remove msvcrt.dll from the Windows JRE bundles
Reviewed-by: prr
上级
44a733fc
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
23 addition
and
114 deletion
+23
-114
make/Makefile
make/Makefile
+2
-5
make/common/Defs-windows.gmk
make/common/Defs-windows.gmk
+8
-9
make/common/shared/Defs-windows.gmk
make/common/shared/Defs-windows.gmk
+0
-12
make/common/shared/Sanity-Settings.gmk
make/common/shared/Sanity-Settings.gmk
+0
-1
make/common/shared/Sanity.gmk
make/common/shared/Sanity.gmk
+0
-7
make/java/redist/Makefile
make/java/redist/Makefile
+0
-4
make/jdk_generic_profile.sh
make/jdk_generic_profile.sh
+11
-73
src/share/demo/jvmti/index.html
src/share/demo/jvmti/index.html
+2
-3
未找到文件。
make/Makefile
浏览文件 @
b5a6bb39
...
@@ -100,7 +100,6 @@ CACERTS_FILE.desc = Location of certificates file
...
@@ -100,7 +100,6 @@ CACERTS_FILE.desc = Location of certificates file
DEVTOOLS_PATH.desc
=
Directory containing zip and unzip
DEVTOOLS_PATH.desc
=
Directory containing zip and unzip
CUPS_HEADERS_PATH.desc
=
Include directory location
for
CUPS header files
CUPS_HEADERS_PATH.desc
=
Include directory location
for
CUPS header files
DXSDK_PATH.desc
=
Root directory of DirectX SDK
DXSDK_PATH.desc
=
Root directory of DirectX SDK
MSVCRT_DLL_PATH.desc
=
Directory containing mscvrt.dll
# Make variables to print out (description and value)
# Make variables to print out (description and value)
VARIABLE_PRINTVAL_LIST
+=
\
VARIABLE_PRINTVAL_LIST
+=
\
...
@@ -133,12 +132,10 @@ VARIABLE_CHECKFIL_LIST += \
...
@@ -133,12 +132,10 @@ VARIABLE_CHECKFIL_LIST += \
ifeq
($(PLATFORM), windows)
ifeq
($(PLATFORM), windows)
VARIABLE_PRINTVAL_LIST
+=
\
VARIABLE_PRINTVAL_LIST
+=
\
DXSDK_PATH
\
DXSDK_PATH
MSVCRT_DLL_PATH
VARIABLE_CHECKDIR_LIST
+=
\
VARIABLE_CHECKDIR_LIST
+=
\
DXSDK_PATH
\
DXSDK_PATH
MSVCRT_DLL_PATH
endif
endif
...
...
make/common/Defs-windows.gmk
浏览文件 @
b5a6bb39
...
@@ -68,28 +68,27 @@ PLATFORM_INCLUDE = $(INCLUDEDIR)/$(PLATFORM_INCLUDE_NAME)
...
@@ -68,28 +68,27 @@ PLATFORM_INCLUDE = $(INCLUDEDIR)/$(PLATFORM_INCLUDE_NAME)
# The following DLL's are considered MS runtime libraries and should
# The following DLL's are considered MS runtime libraries and should
# not to be REBASEd, see deploy/make/common/Release.gmk.
# not to be REBASEd, see deploy/make/common/Release.gmk.
# msvcrt.dll, msvcrnn.dll [msvcr71 or msvcr80 or msvcr90] : Microsoft runtimes
# msvcr*.dll: Microsoft runtimes
MS_RUNTIME_LIBRARIES = msvcrt.dll
ifeq ($(ARCH_DATA_MODEL), 32)
ifeq ($(ARCH_DATA_MODEL), 32)
ifeq ($(COMPILER_VERSION), VS2003)
ifeq ($(COMPILER_VERSION), VS2003)
MSVCRNN_DLL = msvcr71.dll
MSVCRNN_DLL = msvcr71.dll
MSVCPNN_DLL = msvcp71.dll
MSVCPNN_DLL = msvcp71.dll
MS_RUNTIME_LIBRARIES
+=
$(MSVCRNN_DLL)
MS_RUNTIME_LIBRARIES
= msvcrt.dll
$(MSVCRNN_DLL)
endif
endif
ifeq ($(COMPILER_VERSION), VS2005)
ifeq ($(COMPILER_VERSION), VS2005)
MSVCRNN_DLL = msvcr80.dll
MSVCRNN_DLL = msvcr80.dll
MSVCPNN_DLL = msvcp80.dll
MSVCPNN_DLL = msvcp80.dll
MS_RUNTIME_LIBRARIES
+=
$(MSVCRNN_DLL)
MS_RUNTIME_LIBRARIES
= msvcrt.dll
$(MSVCRNN_DLL)
endif
endif
ifeq ($(COMPILER_VERSION), VS2008)
ifeq ($(COMPILER_VERSION), VS2008)
MSVCRNN_DLL = msvcr90.dll
MSVCRNN_DLL = msvcr90.dll
MSVCPNN_DLL = msvcp90.dll
MSVCPNN_DLL = msvcp90.dll
MS_RUNTIME_LIBRARIES
+=
$(MSVCRNN_DLL)
MS_RUNTIME_LIBRARIES
= msvcrt.dll
$(MSVCRNN_DLL)
endif
endif
ifeq ($(COMPILER_VERSION), VS2010)
ifeq ($(COMPILER_VERSION), VS2010)
MSVCRNN_DLL = msvcr100.dll
MSVCRNN_DLL = msvcr100.dll
MSVCPNN_DLL = msvcp100.dll
MSVCPNN_DLL = msvcp100.dll
MS_RUNTIME_LIBRARIES
+
= $(MSVCRNN_DLL)
MS_RUNTIME_LIBRARIES = $(MSVCRNN_DLL)
endif
endif
endif
endif
...
@@ -97,12 +96,12 @@ ifeq ($(ARCH_DATA_MODEL), 64)
...
@@ -97,12 +96,12 @@ ifeq ($(ARCH_DATA_MODEL), 64)
ifeq ($(COMPILER_VERSION), VS2008)
ifeq ($(COMPILER_VERSION), VS2008)
MSVCRNN_DLL = msvcr90.dll
MSVCRNN_DLL = msvcr90.dll
MSVCPNN_DLL = msvcp90.dll
MSVCPNN_DLL = msvcp90.dll
MS_RUNTIME_LIBRARIES
+=
$(MSVCRNN_DLL)
MS_RUNTIME_LIBRARIES
= msvcrt.dll
$(MSVCRNN_DLL)
endif
endif
ifeq ($(COMPILER_VERSION), VS2010)
ifeq ($(COMPILER_VERSION), VS2010)
MSVCRNN_DLL = msvcr100.dll
MSVCRNN_DLL = msvcr100.dll
MSVCPNN_DLL = msvcp100.dll
MSVCPNN_DLL = msvcp100.dll
MS_RUNTIME_LIBRARIES
+
= $(MSVCRNN_DLL)
MS_RUNTIME_LIBRARIES = $(MSVCRNN_DLL)
endif
endif
endif
endif
...
@@ -284,7 +283,7 @@ ifeq ($(MFC_DEBUG), true)
...
@@ -284,7 +283,7 @@ ifeq ($(MFC_DEBUG), true)
MS_RUNTIME_OPTION=-MTd
MS_RUNTIME_OPTION=-MTd
else
else
# This MS debugging flag forces a dependence on the debug
# This MS debugging flag forces a dependence on the debug
# version of the runtime library (MSVCR
T
D.DLL), as does -MDd.
# version of the runtime library (MSVCR
*
D.DLL), as does -MDd.
# We cannot re-distribute this debug runtime.
# We cannot re-distribute this debug runtime.
MS_RUNTIME_OPTION=-MDd
MS_RUNTIME_OPTION=-MDd
endif
endif
...
...
make/common/shared/Defs-windows.gmk
浏览文件 @
b5a6bb39
...
@@ -551,18 +551,6 @@ ifndef ALT_BOOTDIR
...
@@ -551,18 +551,6 @@ ifndef ALT_BOOTDIR
_BOOTDIR3 =$(SLASH_JAVA)/re/jdk/$(PREVIOUS_JDK_VERSION)/archive/fcs/binaries/$(PLATFORM)-$(ARCH)
_BOOTDIR3 =$(SLASH_JAVA)/re/jdk/$(PREVIOUS_JDK_VERSION)/archive/fcs/binaries/$(PLATFORM)-$(ARCH)
endif
endif
# 32 bit always needs 2 runtimes, 64 bit usually does too
# MSVCRT_DLL_PATH: location of msvcrt.dll that will be re-distributed
ifdef ALT_MSVCRT_DLL_PATH
xALT_MSVCRT_DLL_PATH :="$(subst \,/,$(ALT_MSVCRT_DLL_PATH))"
MSVCRT_DLL_PATH :=$(call FullPath,$(xALT_MSVCRT_DLL_PATH))
else
MSVCRT_DLL_PATH :=$(call FullPath,$(_system_root)/system32/)
endif
MSVCRT_DLL_PATH:=$(call AltCheckSpaces,MSVCRT_DLL_PATH)
MSVCRT_DLL_PATH:=$(call AltCheckValue,MSVCRT_DLL_PATH)
# 32bit always needs the MSVCRNN runtime, 64bit does when using VS2008
# 32bit always needs the MSVCRNN runtime, 64bit does when using VS2008
ifeq ($(ARCH_DATA_MODEL), 32)
ifeq ($(ARCH_DATA_MODEL), 32)
_NEEDS_MSVCRNN = true
_NEEDS_MSVCRNN = true
...
...
make/common/shared/Sanity-Settings.gmk
浏览文件 @
b5a6bb39
...
@@ -96,7 +96,6 @@ ifeq ($(PLATFORM),solaris)
...
@@ -96,7 +96,6 @@ ifeq ($(PLATFORM),solaris)
endif
endif
endif
endif
ifeq ($(PLATFORM),windows)
ifeq ($(PLATFORM),windows)
ALL_SETTINGS+=$(call addAltSetting,MSVCRT_DLL_PATH)
ifneq ($(MSVCRNN_DLL),)
ifneq ($(MSVCRNN_DLL),)
ALL_SETTINGS+=$(call addAltSetting,MSVCRNN_DLL_PATH)
ALL_SETTINGS+=$(call addAltSetting,MSVCRNN_DLL_PATH)
endif
endif
...
...
make/common/shared/Sanity.gmk
浏览文件 @
b5a6bb39
...
@@ -879,13 +879,6 @@ sane-devtools_path:
...
@@ -879,13 +879,6 @@ sane-devtools_path:
######################################################
######################################################
sane-msvcrt_path:
sane-msvcrt_path:
ifeq ($(PLATFORM), windows)
ifeq ($(PLATFORM), windows)
@if [ ! -r "$(MSVCRT_DLL_PATH)/msvcrt.dll" ]; then \
$(ECHO) "ERROR: You do not have access to msvcrt.dll. \n" \
" Please check your access to \n" \
" $(MSVCRT_DLL_PATH) \n" \
" and/or check your value of ALT_MSVCRT_DLL_PATH. \n" \
"" >> $(ERROR_FILE) ; \
fi
ifneq ($(MSVCRNN_DLL),)
ifneq ($(MSVCRNN_DLL),)
@if [ ! -r "$(MSVCRNN_DLL_PATH)/$(MSVCRNN_DLL)" ]; then \
@if [ ! -r "$(MSVCRNN_DLL_PATH)/$(MSVCRNN_DLL)" ]; then \
$(ECHO) "ERROR: You do not have access to $(MSVCRNN_DLL). \n" \
$(ECHO) "ERROR: You do not have access to $(MSVCRNN_DLL). \n" \
...
...
make/java/redist/Makefile
浏览文件 @
b5a6bb39
...
@@ -93,10 +93,6 @@ ifeq ($(PLATFORM), windows)
...
@@ -93,10 +93,6 @@ ifeq ($(PLATFORM), windows)
IMPORT_LIST
+=
$
(
MS_RUNTIME_LIBRARIES:%
=
$(BINDIR)
/%
)
IMPORT_LIST
+=
$
(
MS_RUNTIME_LIBRARIES:%
=
$(BINDIR)
/%
)
# NOTE: These might actually come from BUILDDIR, depends on the settings.
$(BINDIR)/msvcrt.dll
:
$(MSVCRT_DLL_PATH)/msvcrt.dll
$
(
install-import-file
)
$(
call
chmod-file, a+x
)
$(BINDIR)/$(MSVCRNN_DLL)
:
$(MSVCRNN_DLL_PATH)/$(MSVCRNN_DLL)
$(BINDIR)/$(MSVCRNN_DLL)
:
$(MSVCRNN_DLL_PATH)/$(MSVCRNN_DLL)
$
(
install-import-file
)
$
(
install-import-file
)
$(
call
chmod-file, a+x
)
$(
call
chmod-file, a+x
)
...
...
make/jdk_generic_profile.sh
浏览文件 @
b5a6bb39
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
#
#
# Assumes basic unix utilities are in the PATH already (uname, hostname, etc.).
# Assumes basic unix utilities are in the PATH already (uname, hostname, etc.).
#
#
# On Windows, assumes PROCESSOR_IDENTIFIER, VS
71
COMNTOOLS,
# On Windows, assumes PROCESSOR_IDENTIFIER, VS
100
COMNTOOLS,
# SYSTEMROOT (or SystemRoot), COMPUTERNAME (or hostname works), and
# SYSTEMROOT (or SystemRoot), COMPUTERNAME (or hostname works), and
# USERNAME is defined in the environment.
# USERNAME is defined in the environment.
# This profile does not rely on using vcvars32.bat and 64bit Setup.bat.
# This profile does not rely on using vcvars32.bat and 64bit Setup.bat.
...
@@ -81,8 +81,7 @@
...
@@ -81,8 +81,7 @@
# Windows Only:
# Windows Only:
# ALT_UNIXCOMMAND_PATH
# ALT_UNIXCOMMAND_PATH
# ALT_DXSDK_PATH
# ALT_DXSDK_PATH
# ALT_MSVCRT_DLL_PATH
# ALT_MSVCRNN_DLL_PATH
# ALT_MSVCR71_DLL_PATH
#
#
#############################################################################
#############################################################################
#
#
...
@@ -213,78 +212,17 @@ else
...
@@ -213,78 +212,17 @@ else
# Compiler setup (nasty part)
# Compiler setup (nasty part)
# NOTE: You can use vcvars32.bat to set PATH, LIB, and INCLUDE.
# NOTE: You can use vcvars32.bat to set PATH, LIB, and INCLUDE.
# NOTE: CYGWIN has a link.exe too, make sure the compilers are first
# NOTE: CYGWIN has a link.exe too, make sure the compilers are first
if
[
"
${
windows_arch
}
"
=
i586
]
;
then
# 32bit Windows compiler settings
# Use supplied vsvars.sh
# VisualStudio .NET 2003 VC++ 7.1 (VS71COMNTOOLS should be defined)
repo
=
`
hg root
`
vs_root
=
$(
${
cygpath
}
"
${
VS71COMNTOOLS
}
/../.."
)
if
[
-f
"
${
repo
}
/make/scripts/vsvars.sh"
]
;
then
# Fill in PATH, LIB, and INCLUDE (unset all others to make sure)
eval
`
sh
${
repo
}
/make/scripts/vsvars.sh
-v10
`
vc7_root
=
"
${
vs_root
}
/Vc7"
elif
[
-f
"
${
repo
}
/../make/scripts/vsvars.sh"
]
;
then
compiler_path
=
"
${
vc7_root
}
/bin"
eval
`
sh
${
repo
}
/../make/scripts/vsvars.sh
-v10
`
platform_sdk
=
"
${
vc7_root
}
/PlatformSDK"
else
echo
"WARNING: No make/scripts/vsvars.sh file found"
# LIB and INCLUDE must use ; as a separator
include4sdk
=
"
${
vc7_root
}
/atlmfc/include"
include4sdk
=
"
${
include4sdk
}
;
${
vc7_root
}
/include"
include4sdk
=
"
${
include4sdk
}
;
${
platform_sdk
}
/include/prerelease"
include4sdk
=
"
${
include4sdk
}
;
${
platform_sdk
}
/include"
include4sdk
=
"
${
include4sdk
}
;
${
vs_root
}
/SDK/v1.1/include"
lib4sdk
=
"
${
lib4sdk
}
;
${
vc7_root
}
/lib"
lib4sdk
=
"
${
lib4sdk
}
;
${
platform_sdk
}
/lib/prerelease"
lib4sdk
=
"
${
lib4sdk
}
;
${
platform_sdk
}
/lib"
lib4sdk
=
"
${
lib4sdk
}
;
${
vs_root
}
/SDK/v1.1/lib"
# Search path and DLL locating path
# WARNING: CYGWIN has a link.exe too, make sure compilers are first
path4sdk
=
"
${
vs_root
}
/Common7/Tools/bin;
${
path4sdk
}
"
path4sdk
=
"
${
vs_root
}
/SDK/v1.1/bin;
${
path4sdk
}
"
path4sdk
=
"
${
vs_root
}
/Common7/Tools;
${
path4sdk
}
"
path4sdk
=
"
${
vs_root
}
/Common7/Tools/bin/prerelease;
${
path4sdk
}
"
path4sdk
=
"
${
vs_root
}
/Common7/IDE;
${
path4sdk
}
"
path4sdk
=
"
${
compiler_path
}
;
${
path4sdk
}
"
elif
[
"
${
windows_arch
}
"
=
amd64
]
;
then
# AMD64 64bit Windows compiler settings
if
[
"
${
ALT_DEPLOY_MSSDK
}
"
!=
""
]
;
then
platform_sdk
=
${
ALT_DEPLOY_MSSDK
}
else
platform_sdk
=
$(
${
cygpath
}
"C:/Program Files/Microsoft Platform SDK/"
)
fi
if
[
"
${
ALT_COMPILER_PATH
}
"
!=
""
]
;
then
compiler_path
=
${
ALT_COMPILER_PATH
}
if
[
"
${
ALT_DEPLOY_MSSDK
}
"
=
""
]
;
then
platform_sdk
=
${
ALT_COMPILER_PATH
}
/../../../..
fi
else
compiler_path
=
"
${
platform_sdk
}
/Bin/win64/x86/AMD64"
fi
# LIB and INCLUDE must use ; as a separator
include4sdk
=
"
${
platform_sdk
}
/Include"
include4sdk
=
"
${
include4sdk
}
;
${
platform_sdk
}
/Include/crt/sys"
include4sdk
=
"
${
include4sdk
}
;
${
platform_sdk
}
/Include/mfc"
include4sdk
=
"
${
include4sdk
}
;
${
platform_sdk
}
/Include/atl"
include4sdk
=
"
${
include4sdk
}
;
${
platform_sdk
}
/Include/crt"
lib4sdk
=
"
${
platform_sdk
}
/Lib/AMD64"
lib4sdk
=
"
${
lib4sdk
}
;
${
platform_sdk
}
/Lib/AMD64/atlmfc"
# Search path and DLL locating path
# WARNING: CYGWIN has a link.exe too, make sure compilers are first
path4sdk
=
"
${
platform_sdk
}
/bin;
${
path4sdk
}
"
path4sdk
=
"
${
compiler_path
}
;
${
path4sdk
}
"
fi
fi
# Export LIB and INCLUDE
unset
lib
unset
Lib
LIB
=
"
${
lib4sdk
}
"
export
LIB
unset
include
unset
Include
INCLUDE
=
"
${
include4sdk
}
"
export
INCLUDE
# Turn all \\ into /, remove duplicates and trailing /
slash_path
=
"
$(
echo
${
path4sdk
}
|
sed
-e
's@\\\\@/@g'
-e
's@//@/@g'
-e
's@/$@@'
-e
's@/;@;@g'
)
"
path4sdk
=
"
${
slash_path
}
"
# Convert path4sdk to cygwin style
path4sdk
=
"
$(
/usr/bin/cygpath
-p
${
path4sdk
}
)
"
fi
fi
# Get the previous JDK to be used to bootstrap the build
# Get the previous JDK to be used to bootstrap the build
...
...
src/share/demo/jvmti/index.html
浏览文件 @
b5a6bb39
...
@@ -389,10 +389,9 @@ Library: Use <code>/opt:REF </code> when building the dll.
...
@@ -389,10 +389,9 @@ Library: Use <code>/opt:REF </code> when building the dll.
<li>
<li>
MS DLL Runtime: Use the
<code>
/MD /D _STATIC_CPPLIB
</code>
option.
MS DLL Runtime: Use the
<code>
/MD /D _STATIC_CPPLIB
</code>
option.
<br>
<br>
This causes your dll to become dependent on MSVCRT.DLL and/or
This causes your dll to become dependent on just MSVCR*.DLL.
the newer C++ runtime MSVCR71.DLL.
The option /D _STATIC_CPPLIB prevents you from becoming dependent on the
The option /D _STATIC_CPPLIB prevents you from becoming dependent on the
C++ library MSVCP
71
.DLL.
C++ library MSVCP
*
.DLL.
This is what we use in the JDK, but there are probably many combinations
This is what we use in the JDK, but there are probably many combinations
that you could safely use, unfortunately there are many combinations
that you could safely use, unfortunately there are many combinations
of runtimes that will not work.
of runtimes that will not work.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录