请问 Kona 的构建参数列表有哪些呀,想了解下
dibingfa opened this issue · 5 comments
就是 ./configure 后面跟的参数,比如 --with-boot-jdk=XXX 等
目前Tencent Kona JDK8 的发行版本配置了如下参数:
--with-milestone=
--with-update-version=
--with-build-number=
--with-vendor-url=
--with-vendor-name=
--with-vendor-bug-url=
--enable-jfr
--with-native-debug-symbols=
--with-zlib=
--with-boot-jdk=
--with-x=
--with-debug-level=
--with-jvm-variants=
--enable-unlimited-crypto
--with-extra-ldflags=
我有个技术问题想请教下,就是 java -version 时的信息,是 configure 这些参数使其改变的么?比如 kona 的 version 信息是这个,和 openJDK 的是不一样的。感谢老师。
TencentKona-8.0.9-322/bin/java -version
openjdk version "1.8.0_322"
OpenJDK Runtime Environment (Tencent Kona 8.0.9) (build 1.8.0_322-b1)
OpenJDK 64-Bit Server VM (Tencent Kona 8.0.9) (build 25.322-b1, mixed mode, sharing)
通过修改 common/autoconf/spec.gmk.in 文件
DISTRO_NAME=Tencent Kona
COMPANY_NAME=Tencent
DISTRO_VERSION=8.0.9
这些变量的处理在:
jdk/make/gensrc/GensrcMisc.gmk
################################################################################
# Install the launcher name, release version string, full version
# string and the runtime name into the Version.java file.
# To be printed by java -version
$(JDK_OUTPUTDIR)/gensrc/sun/misc/Version.java \
$(PROFILE_VERSION_JAVA_TARGETS): \
$(JDK_TOPDIR)/src/share/classes/sun/misc/Version.java.template
$(MKDIR) -p $(@D)
$(RM) $@ $@.tmp
$(ECHO) Generating sun/misc/Version.java $(call profile_version_name, $@)
$(SED) -e 's/@@launcher_name@@/$(LAUNCHER_NAME)/g' \
-e 's/@@java_version@@/$(RELEASE)/g' \
-e 's/@@java_runtime_version@@/$(FULL_VERSION)/g' \
-e 's/@@java_runtime_name@@/$(RUNTIME_NAME)/g' \
-e 's/@@java_profile_name@@/$(call profile_version_name, $@)/g' \
-e 's/@@java_distro_name@@/$(DISTRO_NAME)/g' \
-e 's/@@java_distro_version@@/$(DISTRO_VERSION)/g' \
$< > $@.tmp
$(MV) $@.tmp $@
无进一步需求,关闭该issue