Compare commits
6 Commits
master
...
removeWild
Author | SHA1 | Date | |
---|---|---|---|
|
a29be33ac7 | ||
|
1facf55ccc | ||
|
21aa7e0e9c | ||
|
bc4d7d1bc9 | ||
|
7c06bd67df | ||
|
849209b8cb |
2
.github/actions/config/action.yml
vendored
2
.github/actions/config/action.yml
vendored
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
2
.github/actions/do-build/action.yml
vendored
2
.github/actions/do-build/action.yml
vendored
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
2
.github/actions/get-bootjdk/action.yml
vendored
2
.github/actions/get-bootjdk/action.yml
vendored
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
2
.github/actions/get-bundles/action.yml
vendored
2
.github/actions/get-bundles/action.yml
vendored
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
2
.github/actions/get-msys2/action.yml
vendored
2
.github/actions/get-msys2/action.yml
vendored
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
2
.github/scripts/gen-build-failure-report.sh
vendored
2
.github/scripts/gen-build-failure-report.sh
vendored
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
2
.github/scripts/gen-test-summary.sh
vendored
2
.github/scripts/gen-test-summary.sh
vendored
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
2
.github/workflows/build-cross-compile.yml
vendored
2
.github/workflows/build-cross-compile.yml
vendored
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
@ -66,6 +66,7 @@ jobs:
|
|||||||
- 'hs/tier1 compiler part 1'
|
- 'hs/tier1 compiler part 1'
|
||||||
- 'hs/tier1 compiler part 2'
|
- 'hs/tier1 compiler part 2'
|
||||||
- 'hs/tier1 compiler part 3'
|
- 'hs/tier1 compiler part 3'
|
||||||
|
- 'hs/tier1 compiler not-xcomp'
|
||||||
- 'hs/tier1 gc'
|
- 'hs/tier1 gc'
|
||||||
- 'hs/tier1 runtime'
|
- 'hs/tier1 runtime'
|
||||||
- 'hs/tier1 serviceability'
|
- 'hs/tier1 serviceability'
|
||||||
@ -100,6 +101,10 @@ jobs:
|
|||||||
test-suite: 'test/hotspot/jtreg/:tier1_compiler_3'
|
test-suite: 'test/hotspot/jtreg/:tier1_compiler_3'
|
||||||
debug-suffix: -debug
|
debug-suffix: -debug
|
||||||
|
|
||||||
|
- test-name: 'hs/tier1 compiler not-xcomp'
|
||||||
|
test-suite: 'test/hotspot/jtreg/:tier1_compiler_not_xcomp'
|
||||||
|
debug-suffix: -debug
|
||||||
|
|
||||||
- test-name: 'hs/tier1 gc'
|
- test-name: 'hs/tier1 gc'
|
||||||
test-suite: 'test/hotspot/jtreg/:tier1_gc'
|
test-suite: 'test/hotspot/jtreg/:tier1_gc'
|
||||||
debug-suffix: -debug
|
debug-suffix: -debug
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[general]
|
[general]
|
||||||
project=jdk
|
project=jdk
|
||||||
jbs=JDK
|
jbs=JDK
|
||||||
version=25
|
version=24
|
||||||
|
|
||||||
[checks]
|
[checks]
|
||||||
error=author,committer,reviewers,merge,issues,executable,symlink,message,hg-tag,whitespace,problemlists
|
error=author,committer,reviewers,merge,issues,executable,symlink,message,hg-tag,whitespace,problemlists
|
||||||
|
@ -863,12 +863,12 @@ href="https://www.gnu.org/software/bash">GNU Bash</a>. No other shells
|
|||||||
are supported.</p>
|
are supported.</p>
|
||||||
<p>At least version 3.2 of GNU Bash must be used.</p>
|
<p>At least version 3.2 of GNU Bash must be used.</p>
|
||||||
<h3 id="graphviz-and-pandoc">Graphviz and Pandoc</h3>
|
<h3 id="graphviz-and-pandoc">Graphviz and Pandoc</h3>
|
||||||
<p>In order to build man pages and the full docs (see the
|
<p>In order to build the full docs (see the
|
||||||
<code>--enable-full-docs</code> configure option) <a
|
<code>--enable-full-docs</code> configure option) <a
|
||||||
href="https://pandoc.org">Pandoc</a> is required. For full docs also <a
|
href="https://www.graphviz.org">Graphviz</a> and <a
|
||||||
href="https://www.graphviz.org">Graphviz</a> is required. Any recent
|
href="https://pandoc.org">Pandoc</a> are required. Any recent versions
|
||||||
versions should work. For reference, and subject to change, Oracle
|
should work. For reference, and subject to change, Oracle builds use
|
||||||
builds use Graphviz 9.0.0 and Pandoc 2.19.2.</p>
|
Graphviz 9.0.0 and Pandoc 2.19.2.</p>
|
||||||
<h2 id="running-configure">Running Configure</h2>
|
<h2 id="running-configure">Running Configure</h2>
|
||||||
<p>To build the JDK, you need a "configuration", which consists of a
|
<p>To build the JDK, you need a "configuration", which consists of a
|
||||||
directory where to store the build output, coupled with information
|
directory where to store the build output, coupled with information
|
||||||
|
@ -680,9 +680,9 @@ At least version 3.2 of GNU Bash must be used.
|
|||||||
|
|
||||||
### Graphviz and Pandoc
|
### Graphviz and Pandoc
|
||||||
|
|
||||||
In order to build man pages and the full docs (see the `--enable-full-docs`
|
In order to build the full docs (see the `--enable-full-docs`
|
||||||
configure option) [Pandoc](https://pandoc.org) is required. For full docs also
|
configure option) [Graphviz](https://www.graphviz.org) and
|
||||||
[Graphviz](https://www.graphviz.org) is required. Any recent versions should
|
[Pandoc](https://pandoc.org) are required. Any recent versions should
|
||||||
work. For reference, and subject to change, Oracle builds use Graphviz
|
work. For reference, and subject to change, Oracle builds use Graphviz
|
||||||
9.0.0 and Pandoc 2.19.2.
|
9.0.0 and Pandoc 2.19.2.
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2013, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -107,13 +107,15 @@ JAVA_WARNINGS_ARE_ERRORS ?= -Werror
|
|||||||
JAVADOC_OPTIONS := -use -keywords -notimestamp \
|
JAVADOC_OPTIONS := -use -keywords -notimestamp \
|
||||||
-encoding ISO-8859-1 -docencoding UTF-8 -breakiterator \
|
-encoding ISO-8859-1 -docencoding UTF-8 -breakiterator \
|
||||||
-splitIndex --system none -javafx --expand-requires transitive \
|
-splitIndex --system none -javafx --expand-requires transitive \
|
||||||
--override-methods=summary
|
--override-methods=summary \
|
||||||
|
--no-external-specs-page
|
||||||
|
|
||||||
# The reference options must stay stable to allow for comparisons across the
|
# The reference options must stay stable to allow for comparisons across the
|
||||||
# development cycle.
|
# development cycle.
|
||||||
REFERENCE_OPTIONS := -XDignore.symbol.file=true -use -keywords -notimestamp \
|
REFERENCE_OPTIONS := -XDignore.symbol.file=true -use -keywords -notimestamp \
|
||||||
-encoding ISO-8859-1 -breakiterator -splitIndex --system none \
|
-encoding ISO-8859-1 -breakiterator -splitIndex --system none \
|
||||||
-html5 -javafx --expand-requires transitive
|
-html5 -javafx --expand-requires transitive \
|
||||||
|
--no-external-specs-page
|
||||||
|
|
||||||
# Should we add DRAFT stamps to the generated javadoc?
|
# Should we add DRAFT stamps to the generated javadoc?
|
||||||
ifeq ($(VERSION_IS_GA), true)
|
ifeq ($(VERSION_IS_GA), true)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2012, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -29,7 +29,6 @@ include $(SPEC)
|
|||||||
include MakeBase.gmk
|
include MakeBase.gmk
|
||||||
|
|
||||||
include CopyFiles.gmk
|
include CopyFiles.gmk
|
||||||
include DebugInfoUtils.gmk
|
|
||||||
include Execute.gmk
|
include Execute.gmk
|
||||||
include Modules.gmk
|
include Modules.gmk
|
||||||
include Utils.gmk
|
include Utils.gmk
|
||||||
@ -282,6 +281,27 @@ else
|
|||||||
endif
|
endif
|
||||||
CMDS_TARGET_SUBDIR := bin
|
CMDS_TARGET_SUBDIR := bin
|
||||||
|
|
||||||
|
# Param 1 - dir to find debuginfo files in
|
||||||
|
FindDebuginfoFiles = \
|
||||||
|
$(wildcard $(addprefix $1/*, $(DEBUGINFO_SUFFIXES)) \
|
||||||
|
$(addprefix $1/*/*, $(DEBUGINFO_SUFFIXES)) \
|
||||||
|
$(addprefix $1/*/*/*, $(DEBUGINFO_SUFFIXES)))
|
||||||
|
|
||||||
|
# Pick the correct debug info files to copy, either zipped or not.
|
||||||
|
ifeq ($(ZIP_EXTERNAL_DEBUG_SYMBOLS), true)
|
||||||
|
DEBUGINFO_SUFFIXES += .diz
|
||||||
|
else
|
||||||
|
DEBUGINFO_SUFFIXES := .debuginfo .pdb .map
|
||||||
|
# On Macosx, if debug symbols have not been zipped, find all files inside *.dSYM
|
||||||
|
# dirs.
|
||||||
|
ifeq ($(call isTargetOs, macosx), true)
|
||||||
|
$(call FillFindCache, \
|
||||||
|
$(SUPPORT_OUTPUTDIR)/modules_libs $(SUPPORT_OUTPUTDIR)/modules_cmds)
|
||||||
|
FindDebuginfoFiles = \
|
||||||
|
$(if $(wildcard $1), $(call containing, .dSYM/, $(call FindFiles, $1)))
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# Param 1 - either JDK or JRE
|
# Param 1 - either JDK or JRE
|
||||||
SetupCopyDebuginfo = \
|
SetupCopyDebuginfo = \
|
||||||
$(foreach m, $(ALL_$1_MODULES), \
|
$(foreach m, $(ALL_$1_MODULES), \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2012, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -454,18 +454,6 @@ $(eval $(call SetupTarget, symbols-image, \
|
|||||||
TARGET := symbols, \
|
TARGET := symbols, \
|
||||||
))
|
))
|
||||||
|
|
||||||
$(eval $(call SetupTarget, static-launcher, \
|
|
||||||
MAKEFILE := StaticLibs, \
|
|
||||||
TARGET := static-launcher, \
|
|
||||||
DEPS := hotspot-static-libs static-libs, \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call SetupTarget, static-jdk-image, \
|
|
||||||
MAKEFILE := StaticLibs, \
|
|
||||||
TARGET := static-jdk-image, \
|
|
||||||
DEPS := static-exploded-image jdk-image, \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(eval $(call SetupTarget, static-libs-image, \
|
$(eval $(call SetupTarget, static-libs-image, \
|
||||||
MAKEFILE := StaticLibsImage, \
|
MAKEFILE := StaticLibsImage, \
|
||||||
TARGET := static-libs-image, \
|
TARGET := static-libs-image, \
|
||||||
@ -1098,9 +1086,9 @@ else
|
|||||||
|
|
||||||
symbols-image: $(LIBS_TARGETS) $(LAUNCHER_TARGETS)
|
symbols-image: $(LIBS_TARGETS) $(LAUNCHER_TARGETS)
|
||||||
|
|
||||||
static-libs-image: hotspot-static-libs static-libs
|
static-libs-image: hotspot-static-libs $(STATIC_LIBS_TARGETS)
|
||||||
|
|
||||||
static-libs-graal-image: static-libs
|
static-libs-graal-image: $(STATIC_LIBS_TARGETS)
|
||||||
|
|
||||||
bootcycle-images: jdk-image
|
bootcycle-images: jdk-image
|
||||||
|
|
||||||
@ -1266,8 +1254,6 @@ ifeq ($(call isTargetOs, macosx), true)
|
|||||||
legacy-images: mac-legacy-jre-bundle
|
legacy-images: mac-legacy-jre-bundle
|
||||||
endif
|
endif
|
||||||
|
|
||||||
static-exploded-image: static-launcher exploded-image
|
|
||||||
|
|
||||||
# These targets build the various documentation images
|
# These targets build the various documentation images
|
||||||
docs-jdk-image: docs-jdk
|
docs-jdk-image: docs-jdk
|
||||||
docs-javase-image: docs-javase
|
docs-javase-image: docs-javase
|
||||||
@ -1310,7 +1296,7 @@ endif
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# all-images builds all our deliverables as images.
|
# all-images builds all our deliverables as images.
|
||||||
all-images: product-images static-jdk-image test-image all-docs-images
|
all-images: product-images test-image all-docs-images
|
||||||
|
|
||||||
# all-bundles packages all our deliverables as tar.gz bundles.
|
# all-bundles packages all our deliverables as tar.gz bundles.
|
||||||
all-bundles: product-bundles test-bundles docs-bundles static-libs-bundles
|
all-bundles: product-bundles test-bundles docs-bundles static-libs-bundles
|
||||||
@ -1323,7 +1309,7 @@ ALL_TARGETS += buildtools hotspot hotspot-libs hotspot-static-libs \
|
|||||||
create-buildjdk docs-jdk-api docs-javase-api docs-reference-api docs-jdk \
|
create-buildjdk docs-jdk-api docs-javase-api docs-reference-api docs-jdk \
|
||||||
docs-javase docs-reference docs-javadoc mac-bundles product-images legacy-images \
|
docs-javase docs-reference docs-javadoc mac-bundles product-images legacy-images \
|
||||||
docs-image docs-javase-image docs-reference-image all-docs-images \
|
docs-image docs-javase-image docs-reference-image all-docs-images \
|
||||||
docs-bundles all-docs-bundles test-image all-images static-exploded-image \
|
docs-bundles all-docs-bundles test-image all-images \
|
||||||
all-bundles
|
all-bundles
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
@ -45,23 +45,6 @@ TARGETS :=
|
|||||||
# Include the file being wrapped.
|
# Include the file being wrapped.
|
||||||
include $(MAKEFILE_PREFIX).gmk
|
include $(MAKEFILE_PREFIX).gmk
|
||||||
|
|
||||||
ifeq ($(MAKEFILE_PREFIX), Lib)
|
|
||||||
# We need to keep track of what libraries are generated/needed by this
|
|
||||||
# module. This information is required when doing static linking, to know
|
|
||||||
# which static library files to include. The variable $(MODULE)_INCLUDED_LIBS is
|
|
||||||
# added to for each call to SetupJdkLibrary. The file module-included-libs.txt is then
|
|
||||||
# read in StaticLibs.gmk.
|
|
||||||
ifneq ($($(MODULE)_INCLUDED_LIBS), )
|
|
||||||
LIBLIST := $(SUPPORT_OUTPUTDIR)/modules_static-libs/$(MODULE)/module-included-libs.txt
|
|
||||||
|
|
||||||
$(LIBLIST): $(TARGETS)
|
|
||||||
$(call MakeDir, $(@D))
|
|
||||||
$(ECHO) $($(MODULE)_INCLUDED_LIBS) > $@
|
|
||||||
|
|
||||||
TARGETS += $(LIBLIST)
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Setup copy rules from the modules directories to the jdk image directory.
|
# Setup copy rules from the modules directories to the jdk image directory.
|
||||||
ifeq ($(call isTargetOs, windows), true)
|
ifeq ($(call isTargetOs, windows), true)
|
||||||
TO_BIN_FILTER := %$(SHARED_LIBRARY_SUFFIX) %.diz %.pdb %.map
|
TO_BIN_FILTER := %$(SHARED_LIBRARY_SUFFIX) %.diz %.pdb %.map
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -63,7 +63,7 @@ TEST_JOBS ?= 0
|
|||||||
|
|
||||||
# Use hard-coded values for java flags (one size, fits all!)
|
# Use hard-coded values for java flags (one size, fits all!)
|
||||||
JAVA_FLAGS := -Duser.language=en -Duser.country=US
|
JAVA_FLAGS := -Duser.language=en -Duser.country=US
|
||||||
JAVA_FLAGS_BIG := -Xms64M -Xmx2048M
|
JAVA_FLAGS_BIG := -Xms64M -Xmx1600M
|
||||||
JAVA_FLAGS_SMALL := -XX:+UseSerialGC -Xms32M -Xmx512M -XX:TieredStopAtLevel=1
|
JAVA_FLAGS_SMALL := -XX:+UseSerialGC -Xms32M -Xmx512M -XX:TieredStopAtLevel=1
|
||||||
BUILDJDK_JAVA_FLAGS_SMALL := -Xms32M -Xmx512M -XX:TieredStopAtLevel=1
|
BUILDJDK_JAVA_FLAGS_SMALL := -Xms32M -Xmx512M -XX:TieredStopAtLevel=1
|
||||||
BUILD_JAVA_FLAGS := $(JAVA_FLAGS_BIG)
|
BUILD_JAVA_FLAGS := $(JAVA_FLAGS_BIG)
|
||||||
|
@ -1,191 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (c) 2024, 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
|
|
||||||
# under the terms of the GNU General Public License version 2 only, as
|
|
||||||
# published by the Free Software Foundation. Oracle designates this
|
|
||||||
# particular file as subject to the "Classpath" exception as provided
|
|
||||||
# by Oracle in the LICENSE file that accompanied this code.
|
|
||||||
#
|
|
||||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
# version 2 for more details (a copy is included in the LICENSE file that
|
|
||||||
# accompanied this code).
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License version
|
|
||||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
|
||||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
|
||||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
||||||
# or visit www.oracle.com if you need additional information or have any
|
|
||||||
# questions.
|
|
||||||
#
|
|
||||||
|
|
||||||
default: all
|
|
||||||
|
|
||||||
include $(SPEC)
|
|
||||||
include MakeBase.gmk
|
|
||||||
|
|
||||||
include CopyFiles.gmk
|
|
||||||
include DebugInfoUtils.gmk
|
|
||||||
include Modules.gmk
|
|
||||||
include modules/LauncherCommon.gmk
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
#
|
|
||||||
# Create the static java launcher
|
|
||||||
#
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
STATIC_JDK_IMAGE_DIR := $(IMAGES_OUTPUTDIR)/static-jdk
|
|
||||||
STATIC_LAUNCHER_OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/static-native/launcher
|
|
||||||
HOTSPOT_STATIC_LIB_PATH := $(HOTSPOT_OUTPUTDIR)/*/libjvm/objs/static
|
|
||||||
|
|
||||||
ifneq ($(word 2, $(wildcard $(HOTSPOT_STATIC_LIB_PATH))), )
|
|
||||||
$(error Cannot perform static linking when building more than one JVM library)
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Find all modules with static libraries
|
|
||||||
STATIC_LIB_MODULES := $(patsubst $(SUPPORT_OUTPUTDIR)/modules_static-libs/%, \
|
|
||||||
%, $(wildcard $(SUPPORT_OUTPUTDIR)/modules_static-libs/*))
|
|
||||||
|
|
||||||
# Filter out known broken libraries. This is a temporary measure until
|
|
||||||
# proper support for these libraries can be provided.
|
|
||||||
ifeq ($(call isTargetOs, linux), true)
|
|
||||||
# libsplashscreen has a name conflict with libawt in the function
|
|
||||||
# BitmapToYXBandedRectangles, so we exclude it for now.
|
|
||||||
BROKEN_STATIC_LIBS += splashscreen
|
|
||||||
else ifeq ($(call isTargetOs, macosx), true)
|
|
||||||
# libosxsecurity has a name conflict with libosxapp in the function
|
|
||||||
# JavaStringToNSString, so we exclude it for now.
|
|
||||||
BROKEN_STATIC_LIBS += osxsecurity
|
|
||||||
else ifeq ($(call isTargetOs, windows), true)
|
|
||||||
# libsplashscreen has a name conflict with libawt in the function
|
|
||||||
# BitmapToYXBandedRectangles, so we exclude it for now.
|
|
||||||
BROKEN_STATIC_LIBS += splashscreen
|
|
||||||
# libsspi_bridge has name conflicts with sunmscapi
|
|
||||||
BROKEN_STATIC_LIBS += sspi_bridge
|
|
||||||
# These libs define DllMain which conflict with Hotspot
|
|
||||||
BROKEN_STATIC_LIBS += awt dt_shmem dt_socket
|
|
||||||
# These libs are dependent on any of the above disabled libs
|
|
||||||
BROKEN_STATIC_LIBS += fontmanager jawt lcms net nio
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(foreach module, $(STATIC_LIB_MODULES), \
|
|
||||||
$(eval LIBS_$(module) := $(filter-out $(BROKEN_STATIC_LIBS), $(shell cat \
|
|
||||||
$(SUPPORT_OUTPUTDIR)/modules_static-libs/$(module)/module-included-libs.txt))) \
|
|
||||||
)
|
|
||||||
|
|
||||||
STATIC_LIB_FILES := $(foreach module, $(STATIC_LIB_MODULES), \
|
|
||||||
$(foreach lib, $(LIBS_$(module)), \
|
|
||||||
$(SUPPORT_OUTPUTDIR)/native/$(module)/lib$(lib)/static/$(LIBRARY_PREFIX)$(lib)$(STATIC_LIBRARY_SUFFIX)))
|
|
||||||
|
|
||||||
# Add Hotspot
|
|
||||||
STATIC_LIB_FILES += $(wildcard $(HOTSPOT_STATIC_LIB_PATH)/$(LIBRARY_PREFIX)jvm$(STATIC_LIBRARY_SUFFIX))
|
|
||||||
|
|
||||||
# Figure out what external libraries are required to link these static JDK
|
|
||||||
# libraries.
|
|
||||||
LIB_FLAGS_FILES := $(addsuffix .lib-flags.txt, $(STATIC_LIB_FILES))
|
|
||||||
|
|
||||||
# Gather the lib flags from all individual libraries. There are many duplicates,
|
|
||||||
# so sort and just keep unique instances. On macOS, a common pattern is
|
|
||||||
# "-framework FooFramework", so we must make sure we keep the two words together.
|
|
||||||
EXTERNAL_LIBS := $(strip $(shell $(CAT) $(LIB_FLAGS_FILES) | \
|
|
||||||
$(SED) -e 's/-framework /-framework_/g' | $(TR) ' ' '\n' | $(SORT) -u | \
|
|
||||||
$(SED) -e 's/-framework_/-framework /g'))
|
|
||||||
|
|
||||||
ifeq ($(call isTargetOs, macosx), true)
|
|
||||||
STATIC_LIBS := $(addprefix -force_load$(SPACE), $(STATIC_LIB_FILES))
|
|
||||||
else ifeq ($(call isTargetOs, linux), true)
|
|
||||||
STATIC_LIBS := -Wl,--export-dynamic -Wl,--whole-archive $(STATIC_LIB_FILES) -Wl,--no-whole-archive
|
|
||||||
else ifeq ($(call isTargetOs, windows), true)
|
|
||||||
STATIC_LIBS := $(addprefix -wholearchive:, $(STATIC_LIB_FILES))
|
|
||||||
else
|
|
||||||
$(error Unsupported platform)
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(eval $(call SetupBuildLauncher, java, \
|
|
||||||
CFLAGS := -DEXPAND_CLASSPATH_WILDCARDS -DENABLE_ARG_FILES, \
|
|
||||||
EXTRA_RCFLAGS := $(JAVA_RCFLAGS), \
|
|
||||||
VERSION_INFO_RESOURCE := $(JAVA_VERSION_INFO_RESOURCE), \
|
|
||||||
OPTIMIZATION := HIGH, \
|
|
||||||
STATIC_LAUNCHER := true, \
|
|
||||||
LDFLAGS := $(LDFLAGS_STATIC_JDK), \
|
|
||||||
LIBS := $(STATIC_LIBS) $(EXTERNAL_LIBS), \
|
|
||||||
LINK_TYPE := C++, \
|
|
||||||
OUTPUT_DIR := $(STATIC_LAUNCHER_OUTPUT_DIR), \
|
|
||||||
OBJECT_DIR := $(STATIC_LAUNCHER_OUTPUT_DIR), \
|
|
||||||
))
|
|
||||||
|
|
||||||
$(java): $(STATIC_LIB_FILES)
|
|
||||||
|
|
||||||
TARGETS += $(java)
|
|
||||||
|
|
||||||
JAVA_LAUNCHER := $(BUILD_LAUNCHER_java_TARGET)
|
|
||||||
|
|
||||||
static-launcher: $(java)
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
#
|
|
||||||
# Create the static-jdk image with the statically built java launcher
|
|
||||||
#
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
# Until we get proper support in jlink for generating an image with static
|
|
||||||
# builds, we need to create the image ourselves. We base it on a normal
|
|
||||||
# dynamically linked JDK image.
|
|
||||||
|
|
||||||
# All these files/dirs should be copied as-is
|
|
||||||
JDK_IMAGE_COPY_FILES := $(addprefix $(JDK_IMAGE_DIR)/, conf demo include jmods \
|
|
||||||
legal man/man1/java.1 release README)
|
|
||||||
|
|
||||||
# We need to copy some files from lib, but not the dynamic libraries themselves
|
|
||||||
ALL_LIB_FILES := $(call FindFiles, $(JDK_IMAGE_DIR)/lib)
|
|
||||||
|
|
||||||
# Remove all dynamic libraries from the list
|
|
||||||
JDK_IMAGE_COPY_LIB_FILES := $(filter-out %$(SHARED_LIBRARY_SUFFIX), $(ALL_LIB_FILES))
|
|
||||||
# Remove all debug files from the list
|
|
||||||
ifeq ($(call isTargetOs, macosx), true)
|
|
||||||
JDK_IMAGE_COPY_LIB_FILES := $(call not-containing, .dSYM, $(JDK_IMAGE_COPY_LIB_FILES))
|
|
||||||
else
|
|
||||||
JDK_IMAGE_COPY_LIB_FILES := $(filter-out %.debuginfo %.pdb %.map, $(JDK_IMAGE_COPY_LIB_FILES))
|
|
||||||
endif
|
|
||||||
|
|
||||||
static-jdk-info:
|
|
||||||
$(call LogWarn, Creating static-jdk image)
|
|
||||||
|
|
||||||
$(eval $(call SetupCopyFiles, copy-from-jdk-image, \
|
|
||||||
SRC := $(JDK_IMAGE_DIR), \
|
|
||||||
DEST := $(STATIC_JDK_IMAGE_DIR), \
|
|
||||||
FILES := $(call FindFiles, $(JDK_IMAGE_COPY_FILES)) \
|
|
||||||
$(JDK_IMAGE_COPY_LIB_FILES), \
|
|
||||||
))
|
|
||||||
|
|
||||||
TARGETS += $(copy-from-jdk-image)
|
|
||||||
|
|
||||||
$(copy-from-jdk-image): | static-jdk-info
|
|
||||||
|
|
||||||
$(eval $(call SetupCopyFiles, copy-static-launcher, \
|
|
||||||
FILES := $(JAVA_LAUNCHER), \
|
|
||||||
DEST := $(STATIC_JDK_IMAGE_DIR)/bin, \
|
|
||||||
))
|
|
||||||
|
|
||||||
TARGETS += $(copy-static-launcher)
|
|
||||||
|
|
||||||
$(eval $(call SetupCopyFiles, copy-static-launcher-debuginfo, \
|
|
||||||
SRC := $(STATIC_LAUNCHER_OUTPUT_DIR), \
|
|
||||||
DEST := $(STATIC_JDK_IMAGE_DIR)/bin, \
|
|
||||||
FILES := $(call FindDebuginfoFiles, $(STATIC_LAUNCHER_OUTPUT_DIR)), \
|
|
||||||
))
|
|
||||||
|
|
||||||
TARGETS += $(copy-static-launcher-debuginfo)
|
|
||||||
|
|
||||||
static-jdk-image: $(copy-from-jdk-image) $(copy-static-launcher) $(copy-static-launcher-debuginfo)
|
|
||||||
|
|
||||||
TARGETS += static-jdk-image
|
|
||||||
|
|
||||||
all: $(TARGETS)
|
|
||||||
|
|
||||||
.PHONY: all static-launcher static-jdk-image
|
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
@ -470,7 +470,7 @@ AC_DEFUN_ONCE([BOOTJDK_SETUP_BOOT_JDK_ARGUMENTS],
|
|||||||
# Maximum amount of heap memory.
|
# Maximum amount of heap memory.
|
||||||
JVM_HEAP_LIMIT_32="768"
|
JVM_HEAP_LIMIT_32="768"
|
||||||
# Running a 64 bit JVM allows for and requires a bigger heap
|
# Running a 64 bit JVM allows for and requires a bigger heap
|
||||||
JVM_HEAP_LIMIT_64="2048"
|
JVM_HEAP_LIMIT_64="1600"
|
||||||
JVM_HEAP_LIMIT_GLOBAL=`expr $MEMORY_SIZE / 2`
|
JVM_HEAP_LIMIT_GLOBAL=`expr $MEMORY_SIZE / 2`
|
||||||
if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_32"; then
|
if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_32"; then
|
||||||
JVM_HEAP_LIMIT_32=$JVM_HEAP_LIMIT_GLOBAL
|
JVM_HEAP_LIMIT_32=$JVM_HEAP_LIMIT_GLOBAL
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
|
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
|
||||||
|
|
||||||
#
|
#
|
||||||
# Copyright (c) 2012, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -302,7 +302,7 @@ AC_DEFUN([FLAGS_SETUP_QUALITY_CHECKS],
|
|||||||
|
|
||||||
AC_DEFUN([FLAGS_SETUP_OPTIMIZATION],
|
AC_DEFUN([FLAGS_SETUP_OPTIMIZATION],
|
||||||
[
|
[
|
||||||
if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
|
if test "x$TOOLCHAIN_TYPE" = xgcc; then
|
||||||
C_O_FLAG_HIGHEST_JVM="-O3"
|
C_O_FLAG_HIGHEST_JVM="-O3"
|
||||||
C_O_FLAG_HIGHEST="-O3"
|
C_O_FLAG_HIGHEST="-O3"
|
||||||
C_O_FLAG_HI="-O3"
|
C_O_FLAG_HI="-O3"
|
||||||
@ -311,13 +311,6 @@ AC_DEFUN([FLAGS_SETUP_OPTIMIZATION],
|
|||||||
C_O_FLAG_DEBUG="-O0"
|
C_O_FLAG_DEBUG="-O0"
|
||||||
C_O_FLAG_DEBUG_JVM="-O0"
|
C_O_FLAG_DEBUG_JVM="-O0"
|
||||||
C_O_FLAG_NONE="-O0"
|
C_O_FLAG_NONE="-O0"
|
||||||
|
|
||||||
if test "x$TOOLCHAIN_TYPE" = xclang && test "x$OPENJDK_TARGET_OS" = xaix; then
|
|
||||||
C_O_FLAG_HIGHEST_JVM="${C_O_FLAG_HIGHEST_JVM} -finline-functions"
|
|
||||||
C_O_FLAG_HIGHEST="${C_O_FLAG_HIGHEST} -finline-functions"
|
|
||||||
C_O_FLAG_HI="${C_O_FLAG_HI} -finline-functions"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# -D_FORTIFY_SOURCE=2 hardening option needs optimization (at least -O1) enabled
|
# -D_FORTIFY_SOURCE=2 hardening option needs optimization (at least -O1) enabled
|
||||||
# set for lower O-levels -U_FORTIFY_SOURCE to overwrite previous settings
|
# set for lower O-levels -U_FORTIFY_SOURCE to overwrite previous settings
|
||||||
if test "x$OPENJDK_TARGET_OS" = xlinux -a "x$DEBUG_LEVEL" = "xfastdebug"; then
|
if test "x$OPENJDK_TARGET_OS" = xlinux -a "x$DEBUG_LEVEL" = "xfastdebug"; then
|
||||||
@ -338,6 +331,21 @@ AC_DEFUN([FLAGS_SETUP_OPTIMIZATION],
|
|||||||
C_O_FLAG_DEBUG_JVM="${C_O_FLAG_DEBUG_JVM} ${DISABLE_FORTIFY_CFLAGS}"
|
C_O_FLAG_DEBUG_JVM="${C_O_FLAG_DEBUG_JVM} ${DISABLE_FORTIFY_CFLAGS}"
|
||||||
C_O_FLAG_NONE="${C_O_FLAG_NONE} ${DISABLE_FORTIFY_CFLAGS}"
|
C_O_FLAG_NONE="${C_O_FLAG_NONE} ${DISABLE_FORTIFY_CFLAGS}"
|
||||||
fi
|
fi
|
||||||
|
elif test "x$TOOLCHAIN_TYPE" = xclang; then
|
||||||
|
if test "x$OPENJDK_TARGET_OS" = xaix; then
|
||||||
|
C_O_FLAG_HIGHEST_JVM="-O3 -finline-functions"
|
||||||
|
C_O_FLAG_HIGHEST="-O3 -finline-functions"
|
||||||
|
C_O_FLAG_HI="-O3 -finline-functions"
|
||||||
|
else
|
||||||
|
C_O_FLAG_HIGHEST_JVM="-O3"
|
||||||
|
C_O_FLAG_HIGHEST="-O3"
|
||||||
|
C_O_FLAG_HI="-O3"
|
||||||
|
fi
|
||||||
|
C_O_FLAG_NORM="-O2"
|
||||||
|
C_O_FLAG_DEBUG_JVM="-O0"
|
||||||
|
C_O_FLAG_SIZE="-Os"
|
||||||
|
C_O_FLAG_DEBUG="-O0"
|
||||||
|
C_O_FLAG_NONE="-O0"
|
||||||
elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
|
elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
|
||||||
C_O_FLAG_HIGHEST_JVM="-O2 -Oy-"
|
C_O_FLAG_HIGHEST_JVM="-O2 -Oy-"
|
||||||
C_O_FLAG_HIGHEST="-O2"
|
C_O_FLAG_HIGHEST="-O2"
|
||||||
@ -640,6 +648,23 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
|
|||||||
# Linking is different on macOS
|
# Linking is different on macOS
|
||||||
JVM_PICFLAG=""
|
JVM_PICFLAG=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Extra flags needed when building optional static versions of certain
|
||||||
|
# JDK libraries.
|
||||||
|
STATIC_LIBS_CFLAGS="-DSTATIC_BUILD=1"
|
||||||
|
if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
|
||||||
|
STATIC_LIBS_CFLAGS="$STATIC_LIBS_CFLAGS -ffunction-sections -fdata-sections \
|
||||||
|
-DJNIEXPORT='__attribute__((visibility(\"default\")))'"
|
||||||
|
else
|
||||||
|
STATIC_LIBS_CFLAGS="$STATIC_LIBS_CFLAGS -DJNIEXPORT="
|
||||||
|
fi
|
||||||
|
if test "x$TOOLCHAIN_TYPE" = xgcc; then
|
||||||
|
# Disable relax-relocation to enable compatibility with older linkers
|
||||||
|
RELAX_RELOCATIONS_FLAG="-Xassembler -mrelax-relocations=no"
|
||||||
|
FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [${RELAX_RELOCATIONS_FLAG}],
|
||||||
|
IF_TRUE: [STATIC_LIBS_CFLAGS="$STATIC_LIBS_CFLAGS ${RELAX_RELOCATIONS_FLAG}"])
|
||||||
|
fi
|
||||||
|
AC_SUBST(STATIC_LIBS_CFLAGS)
|
||||||
])
|
])
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -192,23 +192,18 @@ AC_DEFUN([FLAGS_SETUP_LDFLAGS_CPU_DEP],
|
|||||||
# Export variables according to old definitions, prefix with $2 if present.
|
# Export variables according to old definitions, prefix with $2 if present.
|
||||||
LDFLAGS_JDK_COMMON="$BASIC_LDFLAGS $BASIC_LDFLAGS_JDK_ONLY \
|
LDFLAGS_JDK_COMMON="$BASIC_LDFLAGS $BASIC_LDFLAGS_JDK_ONLY \
|
||||||
$OS_LDFLAGS $DEBUGLEVEL_LDFLAGS_JDK_ONLY ${$2EXTRA_LDFLAGS}"
|
$OS_LDFLAGS $DEBUGLEVEL_LDFLAGS_JDK_ONLY ${$2EXTRA_LDFLAGS}"
|
||||||
$2LDFLAGS_JDKLIB="$LDFLAGS_JDK_COMMON \
|
$2LDFLAGS_JDKLIB="$LDFLAGS_JDK_COMMON $BASIC_LDFLAGS_JDK_LIB_ONLY \
|
||||||
$SHARED_LIBRARY_FLAGS $REPRODUCIBLE_LDFLAGS $FILE_MACRO_LDFLAGS"
|
$SHARED_LIBRARY_FLAGS $REPRODUCIBLE_LDFLAGS $FILE_MACRO_LDFLAGS"
|
||||||
$2LDFLAGS_JDKEXE="$LDFLAGS_JDK_COMMON $EXECUTABLE_LDFLAGS \
|
$2LDFLAGS_JDKEXE="$LDFLAGS_JDK_COMMON $EXECUTABLE_LDFLAGS \
|
||||||
${$1_CPU_EXECUTABLE_LDFLAGS} $REPRODUCIBLE_LDFLAGS $FILE_MACRO_LDFLAGS"
|
${$1_CPU_EXECUTABLE_LDFLAGS} $REPRODUCIBLE_LDFLAGS $FILE_MACRO_LDFLAGS"
|
||||||
|
|
||||||
$2LDFLAGS_STATIC_JDK="$BASIC_LDFLAGS $BASIC_LDFLAGS_JVM_ONLY \
|
|
||||||
$OS_LDFLAGS ${$2EXTRA_LDFLAGS} $REPRODUCIBLE_LDFLAGS $FILE_MACRO_LDFLAGS"
|
|
||||||
|
|
||||||
$2JVM_LDFLAGS="$BASIC_LDFLAGS $BASIC_LDFLAGS_JVM_ONLY $OS_LDFLAGS $OS_LDFLAGS_JVM_ONLY \
|
$2JVM_LDFLAGS="$BASIC_LDFLAGS $BASIC_LDFLAGS_JVM_ONLY $OS_LDFLAGS $OS_LDFLAGS_JVM_ONLY \
|
||||||
$DEBUGLEVEL_LDFLAGS $DEBUGLEVEL_LDFLAGS_JVM_ONLY \
|
$DEBUGLEVEL_LDFLAGS $DEBUGLEVEL_LDFLAGS_JVM_ONLY $BASIC_LDFLAGS_ONLYCXX \
|
||||||
${$1_CPU_LDFLAGS} ${$1_CPU_LDFLAGS_JVM_ONLY} ${$2EXTRA_LDFLAGS} \
|
${$1_CPU_LDFLAGS} ${$1_CPU_LDFLAGS_JVM_ONLY} ${$2EXTRA_LDFLAGS} \
|
||||||
$REPRODUCIBLE_LDFLAGS $FILE_MACRO_LDFLAGS"
|
$REPRODUCIBLE_LDFLAGS $FILE_MACRO_LDFLAGS"
|
||||||
|
|
||||||
AC_SUBST($2LDFLAGS_JDKLIB)
|
AC_SUBST($2LDFLAGS_JDKLIB)
|
||||||
AC_SUBST($2LDFLAGS_JDKEXE)
|
AC_SUBST($2LDFLAGS_JDKEXE)
|
||||||
|
|
||||||
AC_SUBST($2LDFLAGS_STATIC_JDK)
|
|
||||||
|
|
||||||
AC_SUBST($2JVM_LDFLAGS)
|
AC_SUBST($2JVM_LDFLAGS)
|
||||||
])
|
])
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -121,7 +121,7 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS],
|
|||||||
if test "x$DOT" != "x"; then
|
if test "x$DOT" != "x"; then
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([no, cannot generate full docs or man pages])
|
AC_MSG_RESULT([no, cannot generate full docs])
|
||||||
FULL_DOCS_AVAILABLE=false
|
FULL_DOCS_AVAILABLE=false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -129,7 +129,7 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_JDK_OPTIONS],
|
|||||||
if test "x$ENABLE_PANDOC" = "xtrue"; then
|
if test "x$ENABLE_PANDOC" = "xtrue"; then
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT([no, cannot generate full docs or man pages])
|
AC_MSG_RESULT([no, cannot generate full docs])
|
||||||
FULL_DOCS_AVAILABLE=false
|
FULL_DOCS_AVAILABLE=false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -369,7 +369,6 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_CODE_COVERAGE],
|
|||||||
CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS"
|
CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS"
|
||||||
LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS"
|
LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS"
|
||||||
LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS"
|
LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS"
|
||||||
LDFLAGS_STATIC_JDK="$LDFLAGS_STATIC_JDK $GCOV_LDFLAGS"
|
|
||||||
])
|
])
|
||||||
AC_SUBST(GCOV_ENABLED)
|
AC_SUBST(GCOV_ENABLED)
|
||||||
|
|
||||||
@ -464,7 +463,6 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_ADDRESS_SANITIZER],
|
|||||||
CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $ASAN_CFLAGS"
|
CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $ASAN_CFLAGS"
|
||||||
LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $ASAN_LDFLAGS"
|
LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $ASAN_LDFLAGS"
|
||||||
LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $ASAN_LDFLAGS"
|
LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $ASAN_LDFLAGS"
|
||||||
LDFLAGS_STATIC_JDK="$LDFLAGS_STATIC_JDK $ASAN_LDFLAGS"
|
|
||||||
])
|
])
|
||||||
AC_SUBST(ASAN_ENABLED)
|
AC_SUBST(ASAN_ENABLED)
|
||||||
])
|
])
|
||||||
@ -498,7 +496,6 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_LEAK_SANITIZER],
|
|||||||
CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $LSAN_CFLAGS"
|
CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $LSAN_CFLAGS"
|
||||||
LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $LSAN_LDFLAGS"
|
LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $LSAN_LDFLAGS"
|
||||||
LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $LSAN_LDFLAGS"
|
LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $LSAN_LDFLAGS"
|
||||||
LDFLAGS_STATIC_JDK="$LDFLAGS_STATIC_JDK $LSAN_LDFLAGS"
|
|
||||||
])
|
])
|
||||||
AC_SUBST(LSAN_ENABLED)
|
AC_SUBST(LSAN_ENABLED)
|
||||||
])
|
])
|
||||||
@ -541,7 +538,6 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_UNDEFINED_BEHAVIOR_SANITIZER],
|
|||||||
CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $UBSAN_CFLAGS"
|
CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $UBSAN_CFLAGS"
|
||||||
LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $UBSAN_LDFLAGS"
|
LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $UBSAN_LDFLAGS"
|
||||||
LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $UBSAN_LDFLAGS"
|
LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $UBSAN_LDFLAGS"
|
||||||
LDFLAGS_STATIC_JDK="$LDFLAGS_STATIC_JDK $UBSAN_LDFLAGS"
|
|
||||||
])
|
])
|
||||||
if test "x$UBSAN_ENABLED" = xfalse; then
|
if test "x$UBSAN_ENABLED" = xfalse; then
|
||||||
UBSAN_CFLAGS=""
|
UBSAN_CFLAGS=""
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -666,10 +666,7 @@ AC_DEFUN([PLATFORM_CHECK_DEPRECATION],
|
|||||||
[
|
[
|
||||||
AC_ARG_ENABLE(deprecated-ports, [AS_HELP_STRING([--enable-deprecated-ports@<:@=yes/no@:>@],
|
AC_ARG_ENABLE(deprecated-ports, [AS_HELP_STRING([--enable-deprecated-ports@<:@=yes/no@:>@],
|
||||||
[Suppress the error when configuring for a deprecated port @<:@no@:>@])])
|
[Suppress the error when configuring for a deprecated port @<:@no@:>@])])
|
||||||
# Unfortunately, variants have not been parsed yet, so we have to check the configure option
|
if test "x$OPENJDK_TARGET_CPU" = xx86; then
|
||||||
# directly. Allow only the directly specified Zero variant, treat any other mix as containing
|
|
||||||
# something non-Zero.
|
|
||||||
if test "x$OPENJDK_TARGET_CPU" = xx86 && test "x$with_jvm_variants" != xzero; then
|
|
||||||
if test "x$enable_deprecated_ports" = "xyes"; then
|
if test "x$enable_deprecated_ports" = "xyes"; then
|
||||||
AC_MSG_WARN([The 32-bit x86 port is deprecated and may be removed in a future release.])
|
AC_MSG_WARN([The 32-bit x86 port is deprecated and may be removed in a future release.])
|
||||||
else
|
else
|
||||||
|
@ -429,6 +429,8 @@ LIBFFI_LIB_FILE := @LIBFFI_LIB_FILE@
|
|||||||
FILE_MACRO_CFLAGS := @FILE_MACRO_CFLAGS@
|
FILE_MACRO_CFLAGS := @FILE_MACRO_CFLAGS@
|
||||||
REPRODUCIBLE_CFLAGS := @REPRODUCIBLE_CFLAGS@
|
REPRODUCIBLE_CFLAGS := @REPRODUCIBLE_CFLAGS@
|
||||||
|
|
||||||
|
STATIC_LIBS_CFLAGS := @STATIC_LIBS_CFLAGS@
|
||||||
|
|
||||||
JMH_CORE_JAR := @JMH_CORE_JAR@
|
JMH_CORE_JAR := @JMH_CORE_JAR@
|
||||||
JMH_GENERATOR_JAR := @JMH_GENERATOR_JAR@
|
JMH_GENERATOR_JAR := @JMH_GENERATOR_JAR@
|
||||||
JMH_JOPT_SIMPLE_JAR := @JMH_JOPT_SIMPLE_JAR@
|
JMH_JOPT_SIMPLE_JAR := @JMH_JOPT_SIMPLE_JAR@
|
||||||
@ -557,9 +559,6 @@ LDFLAGS_JDKLIB := @LDFLAGS_JDKLIB@
|
|||||||
# LDFLAGS used to link the jdk native launchers (C-code)
|
# LDFLAGS used to link the jdk native launchers (C-code)
|
||||||
LDFLAGS_JDKEXE := @LDFLAGS_JDKEXE@
|
LDFLAGS_JDKEXE := @LDFLAGS_JDKEXE@
|
||||||
|
|
||||||
# LDFLAGS used to link the static jdk library
|
|
||||||
LDFLAGS_STATIC_JDK := @LDFLAGS_STATIC_JDK@
|
|
||||||
|
|
||||||
# LDFLAGS specific to C++ linking.
|
# LDFLAGS specific to C++ linking.
|
||||||
LDFLAGS_CXX_JDK := @LDFLAGS_CXX_JDK@
|
LDFLAGS_CXX_JDK := @LDFLAGS_CXX_JDK@
|
||||||
|
|
||||||
|
@ -575,7 +575,7 @@ AC_DEFUN([UTIL_CHECK_TYPE_directory],
|
|||||||
|
|
||||||
if test "[x]ARG_CHECK_FOR_FILES" != "x:"; then
|
if test "[x]ARG_CHECK_FOR_FILES" != "x:"; then
|
||||||
for file in ARG_CHECK_FOR_FILES; do
|
for file in ARG_CHECK_FOR_FILES; do
|
||||||
found_files=$($ECHO $($LS -d $1/$file 2> /dev/null))
|
found_files=$($ECHO $(ls $1/$file 2> /dev/null))
|
||||||
if test "x$found_files" = x; then
|
if test "x$found_files" = x; then
|
||||||
FAILURE="Directory $1 does not contain $file"
|
FAILURE="Directory $1 does not contain $file"
|
||||||
break
|
break
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,58 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (c) 2024, 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
|
|
||||||
# under the terms of the GNU General Public License version 2 only, as
|
|
||||||
# published by the Free Software Foundation. Oracle designates this
|
|
||||||
# particular file as subject to the "Classpath" exception as provided
|
|
||||||
# by Oracle in the LICENSE file that accompanied this code.
|
|
||||||
#
|
|
||||||
# This code is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
||||||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
# version 2 for more details (a copy is included in the LICENSE file that
|
|
||||||
# accompanied this code).
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License version
|
|
||||||
# 2 along with this work; if not, write to the Free Software Foundation,
|
|
||||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
#
|
|
||||||
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
||||||
# or visit www.oracle.com if you need additional information or have any
|
|
||||||
# questions.
|
|
||||||
#
|
|
||||||
|
|
||||||
ifeq ($(_MAKEBASE_GMK), )
|
|
||||||
$(error You must include MakeBase.gmk prior to including DebugInfoUtils.gmk)
|
|
||||||
endif
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
#
|
|
||||||
# Common debuginfo utility functions
|
|
||||||
#
|
|
||||||
################################################################################
|
|
||||||
|
|
||||||
################################################################################
|
|
||||||
# Find native debuginfo files in a directory
|
|
||||||
#
|
|
||||||
# Param 1 - dir to find debuginfo files in
|
|
||||||
FindDebuginfoFiles = \
|
|
||||||
$(wildcard $(addprefix $1/*, $(DEBUGINFO_SUFFIXES)) \
|
|
||||||
$(addprefix $1/*/*, $(DEBUGINFO_SUFFIXES)) \
|
|
||||||
$(addprefix $1/*/*/*, $(DEBUGINFO_SUFFIXES)))
|
|
||||||
|
|
||||||
# Pick the correct debug info files to copy, either zipped or not.
|
|
||||||
ifeq ($(ZIP_EXTERNAL_DEBUG_SYMBOLS), true)
|
|
||||||
DEBUGINFO_SUFFIXES += .diz
|
|
||||||
else
|
|
||||||
DEBUGINFO_SUFFIXES := .debuginfo .pdb .map
|
|
||||||
# On Macosx, if debug symbols have not been zipped, find all files inside *.dSYM
|
|
||||||
# dirs.
|
|
||||||
ifeq ($(call isTargetOs, macosx), true)
|
|
||||||
$(call FillFindCache, \
|
|
||||||
$(SUPPORT_OUTPUTDIR)/modules_libs $(SUPPORT_OUTPUTDIR)/modules_cmds)
|
|
||||||
FindDebuginfoFiles = \
|
|
||||||
$(if $(wildcard $1), $(call containing, .dSYM/, $(call FindFiles, $1)))
|
|
||||||
endif
|
|
||||||
endif
|
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -275,8 +275,6 @@ JDK_RCFLAGS=$(RCFLAGS) \
|
|||||||
# and EXTRA_HEADER_DIRS will be added.
|
# and EXTRA_HEADER_DIRS will be added.
|
||||||
# JDK_LIBS_<os> or JDK_LIBS_<osType> -- additional JDK_LIBS for the given OS
|
# JDK_LIBS_<os> or JDK_LIBS_<osType> -- additional JDK_LIBS for the given OS
|
||||||
# or OS type only
|
# or OS type only
|
||||||
# ONLY_EXPORTED -- if true, this library will be flagged as not
|
|
||||||
# to be included for this module when building static libs
|
|
||||||
# EXTRA_RCFLAGS -- additional RCFLAGS to append.
|
# EXTRA_RCFLAGS -- additional RCFLAGS to append.
|
||||||
# RC_FILEDESC -- override the default FILEDESC for Windows version.rc
|
# RC_FILEDESC -- override the default FILEDESC for Windows version.rc
|
||||||
# DEFAULT_LIBCXX -- if false, do not add LIBCXX to LIBS for C++ compilations
|
# DEFAULT_LIBCXX -- if false, do not add LIBCXX to LIBS for C++ compilations
|
||||||
@ -305,15 +303,6 @@ define SetupJdkNativeCompilationBody
|
|||||||
$1_RC_FTYPE := 0x2L
|
$1_RC_FTYPE := 0x2L
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($$(MODULE), )
|
|
||||||
# Record the fact that this native library is part of the current module
|
|
||||||
# (unless told otherwise). This variable stores information about all
|
|
||||||
# created libraries, and is read by ModuleWrapper.
|
|
||||||
ifneq ($$($1_ONLY_EXPORTED), true)
|
|
||||||
$$(MODULE)_INCLUDED_LIBS += $$($1_NAME)
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($$($1_OUTPUT_DIR), )
|
ifeq ($$($1_OUTPUT_DIR), )
|
||||||
ifneq ($$(MODULE), )
|
ifneq ($$(MODULE), )
|
||||||
ifeq ($$($1_TYPE), STATIC_LIBRARY)
|
ifeq ($$($1_TYPE), STATIC_LIBRARY)
|
||||||
@ -433,10 +422,10 @@ define SetupJdkNativeCompilationBody
|
|||||||
ifneq ($$($1_DEFAULT_LDFLAGS), false)
|
ifneq ($$($1_DEFAULT_LDFLAGS), false)
|
||||||
ifeq ($$($1_TYPE), EXECUTABLE)
|
ifeq ($$($1_TYPE), EXECUTABLE)
|
||||||
# Set the default flags first to be able to override
|
# Set the default flags first to be able to override
|
||||||
$1_LDFLAGS := $$(filter-out $$($1_LDFLAGS_FILTER_OUT), $$(LDFLAGS_JDKEXE) $$($1_LDFLAGS))
|
$1_LDFLAGS := $$(filter-out $$($1_LDFLAGS_FILTER_OUT), $$(LDFLAGS_JDKEXE)) $$($1_LDFLAGS)
|
||||||
else
|
else
|
||||||
# Set the default flags first to be able to override
|
# Set the default flags first to be able to override
|
||||||
$1_LDFLAGS := $$(filter-out $$($1_LDFLAGS_FILTER_OUT), $$(LDFLAGS_JDKLIB) $$($1_LDFLAGS))
|
$1_LDFLAGS := $$(filter-out $$($1_LDFLAGS_FILTER_OUT), $$(LDFLAGS_JDKLIB)) $$($1_LDFLAGS)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2013, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -62,7 +62,6 @@ JAVA_MANIFEST := $(TOPDIR)/src/java.base/windows/native/launcher/java.manifest
|
|||||||
# OPTIMIZATION Override default optimization level (LOW)
|
# OPTIMIZATION Override default optimization level (LOW)
|
||||||
# OUTPUT_DIR Override default output directory
|
# OUTPUT_DIR Override default output directory
|
||||||
# VERSION_INFO_RESOURCE Override default Windows resource file
|
# VERSION_INFO_RESOURCE Override default Windows resource file
|
||||||
# STATIC_LAUNCHER If true, will use settings for building a static launcher
|
|
||||||
SetupBuildLauncher = $(NamedParamsMacroTemplate)
|
SetupBuildLauncher = $(NamedParamsMacroTemplate)
|
||||||
define SetupBuildLauncherBody
|
define SetupBuildLauncherBody
|
||||||
# Setup default values (unless overridden)
|
# Setup default values (unless overridden)
|
||||||
@ -121,15 +120,6 @@ define SetupBuildLauncherBody
|
|||||||
$1_EXTRA_FILES += $(TOPDIR)/make/data/lsan/lsan_default_options.c
|
$1_EXTRA_FILES += $(TOPDIR)/make/data/lsan/lsan_default_options.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($$($1_STATIC_LAUNCHER), true)
|
|
||||||
$1_JDK_LIBS := java.base:libjli
|
|
||||||
$1_JDK_LIBS_windows := java.base:libjava
|
|
||||||
else
|
|
||||||
ifneq ($(findstring $(TOOLCHAIN_TYPE), gcc clang), )
|
|
||||||
$1_LDFLAGS_FILTER_OUT := -Wl$(COMMA)--exclude-libs$(COMMA)ALL
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
## Build launcher "$1"
|
## Build launcher "$1"
|
||||||
##############################################################################
|
##############################################################################
|
||||||
@ -150,9 +140,8 @@ define SetupBuildLauncherBody
|
|||||||
LDFLAGS := $$($1_LDFLAGS), \
|
LDFLAGS := $$($1_LDFLAGS), \
|
||||||
LDFLAGS_linux := $$(call SET_EXECUTABLE_ORIGIN,/../lib), \
|
LDFLAGS_linux := $$(call SET_EXECUTABLE_ORIGIN,/../lib), \
|
||||||
LDFLAGS_macosx := $$(call SET_EXECUTABLE_ORIGIN,/../lib), \
|
LDFLAGS_macosx := $$(call SET_EXECUTABLE_ORIGIN,/../lib), \
|
||||||
LDFLAGS_FILTER_OUT := $$($1_LDFLAGS_FILTER_OUT), \
|
JDK_LIBS := java.base:libjli, \
|
||||||
JDK_LIBS := $$($1_JDK_LIBS), \
|
JDK_LIBS_windows := java.base:libjava, \
|
||||||
JDK_LIBS_windows := $$($1_JDK_LIBS_windows), \
|
|
||||||
LIBS := $$($1_LIBS), \
|
LIBS := $$($1_LIBS), \
|
||||||
LIBS_unix := $(LIBZ_LIBS), \
|
LIBS_unix := $(LIBZ_LIBS), \
|
||||||
LIBS_linux := $(LIBDL) -lpthread, \
|
LIBS_linux := $(LIBDL) -lpthread, \
|
||||||
@ -160,9 +149,7 @@ define SetupBuildLauncherBody
|
|||||||
-framework ApplicationServices \
|
-framework ApplicationServices \
|
||||||
-framework Cocoa \
|
-framework Cocoa \
|
||||||
-framework Security, \
|
-framework Security, \
|
||||||
LINK_TYPE := $$($1_LINK_TYPE), \
|
|
||||||
OUTPUT_DIR := $$($1_OUTPUT_DIR), \
|
OUTPUT_DIR := $$($1_OUTPUT_DIR), \
|
||||||
OBJECT_DIR := $$($1_OBJECT_DIR), \
|
|
||||||
VERSIONINFO_RESOURCE := $$($1_VERSION_INFO_RESOURCE), \
|
VERSIONINFO_RESOURCE := $$($1_VERSION_INFO_RESOURCE), \
|
||||||
EXTRA_RCFLAGS := $$($1_EXTRA_RCFLAGS), \
|
EXTRA_RCFLAGS := $$($1_EXTRA_RCFLAGS), \
|
||||||
MANIFEST := $(JAVA_MANIFEST), \
|
MANIFEST := $(JAVA_MANIFEST), \
|
||||||
@ -193,7 +180,9 @@ ifeq ($(call isTargetOsType, unix)+$(MAKEFILE_PREFIX), true+Launcher)
|
|||||||
MAN_FILES_MD := $(wildcard $(addsuffix /*.md, $(call FindModuleManDirs, $(MODULE))))
|
MAN_FILES_MD := $(wildcard $(addsuffix /*.md, $(call FindModuleManDirs, $(MODULE))))
|
||||||
|
|
||||||
ifneq ($(MAN_FILES_MD), )
|
ifneq ($(MAN_FILES_MD), )
|
||||||
ifeq ($(ENABLE_PANDOC), true)
|
ifeq ($(ENABLE_PANDOC), false)
|
||||||
|
$(info Warning: pandoc not found. Not generating man pages)
|
||||||
|
else
|
||||||
# Create dynamic man pages from markdown using pandoc. We need
|
# Create dynamic man pages from markdown using pandoc. We need
|
||||||
# PANDOC_TROFF_MANPAGE_FILTER, a wrapper around
|
# PANDOC_TROFF_MANPAGE_FILTER, a wrapper around
|
||||||
# PANDOC_TROFF_MANPAGE_FILTER_JAVASCRIPT. This is created by buildtools-jdk.
|
# PANDOC_TROFF_MANPAGE_FILTER_JAVASCRIPT. This is created by buildtools-jdk.
|
||||||
|
@ -99,7 +99,7 @@ define SetupCompilerFlags
|
|||||||
$1_EXTRA_CFLAGS += $$($1_CFLAGS_$(OPENJDK_TARGET_OS)_$(OPENJDK_TARGET_CPU)_release)
|
$1_EXTRA_CFLAGS += $$($1_CFLAGS_$(OPENJDK_TARGET_OS)_$(OPENJDK_TARGET_CPU)_release)
|
||||||
endif
|
endif
|
||||||
ifeq ($(STATIC_LIBS), true)
|
ifeq ($(STATIC_LIBS), true)
|
||||||
$1_EXTRA_CFLAGS += -DSTATIC_BUILD=1
|
$1_EXTRA_CFLAGS += $$(STATIC_LIBS_CFLAGS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Pickup extra OPENJDK_TARGET_OS_TYPE, OPENJDK_TARGET_OS and/or TOOLCHAIN_TYPE
|
# Pickup extra OPENJDK_TARGET_OS_TYPE, OPENJDK_TARGET_OS and/or TOOLCHAIN_TYPE
|
||||||
|
@ -119,7 +119,6 @@ define CreateStaticLibrary
|
|||||||
$(if $$($1_LINK_OBJS_RELATIVE), $$(CD) $$(OUTPUTDIR) ; ) \
|
$(if $$($1_LINK_OBJS_RELATIVE), $$(CD) $$(OUTPUTDIR) ; ) \
|
||||||
$$($1_AR) $$(ARFLAGS) -r -cs $$($1_TARGET) \
|
$$($1_AR) $$(ARFLAGS) -r -cs $$($1_TARGET) \
|
||||||
$$($1_AR_OBJ_ARG) $$($1_RES))
|
$$($1_AR_OBJ_ARG) $$($1_RES))
|
||||||
$$(ECHO) $$(strip $$($1_LIBS) $$($1_EXTRA_LIBS)) > $$($1_TARGET).lib-flags.txt
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -54,8 +54,7 @@ define CreateStaticLibraryMicrosoft
|
|||||||
$$(call MakeDir, $$($1_OUTPUT_DIR) $$($1_SYMBOLS_DIR))
|
$$(call MakeDir, $$($1_OUTPUT_DIR) $$($1_SYMBOLS_DIR))
|
||||||
$$(call ExecuteWithLog, $$($1_OBJECT_DIR)/$$($1_SAFE_NAME)_run_lib, \
|
$$(call ExecuteWithLog, $$($1_OBJECT_DIR)/$$($1_SAFE_NAME)_run_lib, \
|
||||||
$$($1_LIB) -nologo $$(LIBFLAGS) -out:$$($1_TARGET) \
|
$$($1_LIB) -nologo $$(LIBFLAGS) -out:$$($1_TARGET) \
|
||||||
$$($1_LD_OBJ_ARG))
|
$$($1_LD_OBJ_ARG) $$($1_RES))
|
||||||
$$(ECHO) $$(strip $$($1_LIBS) $$($1_EXTRA_LIBS)) > $$($1_TARGET).lib-flags.txt
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
@ -241,7 +241,7 @@ var getJibProfilesCommon = function (input, data) {
|
|||||||
// List of the main profile names used for iteration
|
// List of the main profile names used for iteration
|
||||||
common.main_profile_names = [
|
common.main_profile_names = [
|
||||||
"linux-x64", "linux-x86", "macosx-x64", "macosx-aarch64",
|
"linux-x64", "linux-x86", "macosx-x64", "macosx-aarch64",
|
||||||
"windows-x64", "windows-aarch64",
|
"windows-x64", "windows-x86", "windows-aarch64",
|
||||||
"linux-aarch64", "linux-arm32", "linux-ppc64le", "linux-s390x",
|
"linux-aarch64", "linux-arm32", "linux-ppc64le", "linux-s390x",
|
||||||
"linux-riscv64"
|
"linux-riscv64"
|
||||||
];
|
];
|
||||||
@ -465,6 +465,15 @@ var getJibProfilesProfiles = function (input, common, data) {
|
|||||||
configure_args: concat(common.configure_args_64bit),
|
configure_args: concat(common.configure_args_64bit),
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"windows-x86": {
|
||||||
|
target_os: "windows",
|
||||||
|
target_cpu: "x86",
|
||||||
|
build_cpu: "x64",
|
||||||
|
dependencies: ["devkit", "gtest"],
|
||||||
|
configure_args: concat(common.configure_args_32bit,
|
||||||
|
"--enable-deprecated-ports"),
|
||||||
|
},
|
||||||
|
|
||||||
"windows-aarch64": {
|
"windows-aarch64": {
|
||||||
target_os: "windows",
|
target_os: "windows",
|
||||||
target_cpu: "aarch64",
|
target_cpu: "aarch64",
|
||||||
@ -707,6 +716,10 @@ var getJibProfilesProfiles = function (input, common, data) {
|
|||||||
platform: "windows-x64",
|
platform: "windows-x64",
|
||||||
jdk_suffix: "zip",
|
jdk_suffix: "zip",
|
||||||
},
|
},
|
||||||
|
"windows-x86": {
|
||||||
|
platform: "windows-x86",
|
||||||
|
jdk_suffix: "zip",
|
||||||
|
},
|
||||||
"windows-aarch64": {
|
"windows-aarch64": {
|
||||||
platform: "windows-aarch64",
|
platform: "windows-aarch64",
|
||||||
jdk_suffix: "zip",
|
jdk_suffix: "zip",
|
||||||
@ -1201,11 +1214,9 @@ var getJibProfilesDependencies = function (input, common) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
jcov: {
|
jcov: {
|
||||||
server: "jpg",
|
organization: common.organization,
|
||||||
product: "jcov",
|
revision: "3.0-17-jdk-asm+1.0",
|
||||||
version: "3.0",
|
ext: "zip",
|
||||||
build_number: "1",
|
|
||||||
file: "bundles/jcov-3.0+1.zip",
|
|
||||||
environment_name: "JCOV_HOME",
|
environment_name: "JCOV_HOME",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -26,17 +26,17 @@
|
|||||||
# Default version, product, and vendor information to use,
|
# Default version, product, and vendor information to use,
|
||||||
# unless overridden by configure
|
# unless overridden by configure
|
||||||
|
|
||||||
DEFAULT_VERSION_FEATURE=25
|
DEFAULT_VERSION_FEATURE=24
|
||||||
DEFAULT_VERSION_INTERIM=0
|
DEFAULT_VERSION_INTERIM=0
|
||||||
DEFAULT_VERSION_UPDATE=0
|
DEFAULT_VERSION_UPDATE=0
|
||||||
DEFAULT_VERSION_PATCH=0
|
DEFAULT_VERSION_PATCH=0
|
||||||
DEFAULT_VERSION_EXTRA1=0
|
DEFAULT_VERSION_EXTRA1=0
|
||||||
DEFAULT_VERSION_EXTRA2=0
|
DEFAULT_VERSION_EXTRA2=0
|
||||||
DEFAULT_VERSION_EXTRA3=0
|
DEFAULT_VERSION_EXTRA3=0
|
||||||
DEFAULT_VERSION_DATE=2025-09-16
|
DEFAULT_VERSION_DATE=2025-03-18
|
||||||
DEFAULT_VERSION_CLASSFILE_MAJOR=69 # "`$EXPR $DEFAULT_VERSION_FEATURE + 44`"
|
DEFAULT_VERSION_CLASSFILE_MAJOR=68 # "`$EXPR $DEFAULT_VERSION_FEATURE + 44`"
|
||||||
DEFAULT_VERSION_CLASSFILE_MINOR=0
|
DEFAULT_VERSION_CLASSFILE_MINOR=0
|
||||||
DEFAULT_VERSION_DOCS_API_SINCE=11
|
DEFAULT_VERSION_DOCS_API_SINCE=11
|
||||||
DEFAULT_ACCEPTABLE_BOOT_VERSIONS="23 24 25"
|
DEFAULT_ACCEPTABLE_BOOT_VERSIONS="23 24"
|
||||||
DEFAULT_JDK_SOURCE_TARGET_VERSION=25
|
DEFAULT_JDK_SOURCE_TARGET_VERSION=24
|
||||||
DEFAULT_PROMOTED_VERSION_PRE=ea
|
DEFAULT_PROMOTED_VERSION_PRE=ea
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2013, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2013, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -174,12 +174,6 @@ ifeq ($(call check-jvm-feature, link-time-opt), true)
|
|||||||
-fno-fat-lto-objects
|
-fno-fat-lto-objects
|
||||||
JVM_LDFLAGS_FEATURES += $(CXX_O_FLAG_HIGHEST_JVM) -flto=auto \
|
JVM_LDFLAGS_FEATURES += $(CXX_O_FLAG_HIGHEST_JVM) -flto=auto \
|
||||||
-fuse-linker-plugin -fno-strict-aliasing
|
-fuse-linker-plugin -fno-strict-aliasing
|
||||||
else ifeq ($(call isCompiler, clang), true)
|
|
||||||
JVM_CFLAGS_FEATURES += -flto -fno-strict-aliasing
|
|
||||||
ifeq ($(call isBuildOs, aix), true)
|
|
||||||
JVM_CFLAGS_FEATURES += -ffat-lto-objects
|
|
||||||
endif
|
|
||||||
JVM_LDFLAGS_FEATURES += $(CXX_O_FLAG_HIGHEST_JVM) -flto -fno-strict-aliasing
|
|
||||||
else ifeq ($(call isCompiler, microsoft), true)
|
else ifeq ($(call isCompiler, microsoft), true)
|
||||||
JVM_CFLAGS_FEATURES += -GL
|
JVM_CFLAGS_FEATURES += -GL
|
||||||
JVM_LDFLAGS_FEATURES += -LTCG:INCREMENTAL
|
JVM_LDFLAGS_FEATURES += -LTCG:INCREMENTAL
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2005, 2024, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1999, 2024, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -42,7 +42,7 @@ ifeq ($(call isTargetOs, macosx), true)
|
|||||||
PROJECT_FILE_NAME := hotspot.xcodeproj
|
PROJECT_FILE_NAME := hotspot.xcodeproj
|
||||||
|
|
||||||
COMPILE_COMMAND_FILE := $(OUTPUTDIR)/compile_commands.json
|
COMPILE_COMMAND_FILE := $(OUTPUTDIR)/compile_commands.json
|
||||||
LINKER_FLAGS_FILE := $(MAKESUPPORT_OUTPUTDIR)/compile-commands/LIBRARY_hotspot_variant-server_libjvm_libjvm-ldflags.txt
|
LINKER_FLAGS_FILE := $(MAKESUPPORT_OUTPUTDIR)/compile-commands/jvm-ldflags.txt
|
||||||
|
|
||||||
$(eval $(call SetupJavaCompilation, BUILD_PROJECT_CREATOR, \
|
$(eval $(call SetupJavaCompilation, BUILD_PROJECT_CREATOR, \
|
||||||
TARGET_RELEASE := $(TARGET_RELEASE_BOOTJDK), \
|
TARGET_RELEASE := $(TARGET_RELEASE_BOOTJDK), \
|
||||||
@ -60,7 +60,7 @@ ifeq ($(call isTargetOs, macosx), true)
|
|||||||
XCODE_PROJ_DEBUG_OPTION := -d
|
XCODE_PROJ_DEBUG_OPTION := -d
|
||||||
endif
|
endif
|
||||||
|
|
||||||
XCODE_PROJ_VARDEPS := $(TOPDIR) $(IDE_OUTPUTDIR) \
|
XCODE_PROJ_VARDEPS := $(WORKSPACE_ROOT) $(IDE_OUTPUTDIR) \
|
||||||
$(PROJECT_MAKER_DIR)/data $(COMPILE_COMMAND_FILE) $(LINKER_FLAGS_FILE)
|
$(PROJECT_MAKER_DIR)/data $(COMPILE_COMMAND_FILE) $(LINKER_FLAGS_FILE)
|
||||||
XCODE_PROJ_VARDEPS_FILE := $(call DependOnVariable, XCODE_PROJ_VARDEPS, \
|
XCODE_PROJ_VARDEPS_FILE := $(call DependOnVariable, XCODE_PROJ_VARDEPS, \
|
||||||
$(TOOLS_OUTPUTDIR)/xcodeproj.vardeps)
|
$(TOOLS_OUTPUTDIR)/xcodeproj.vardeps)
|
||||||
@ -70,7 +70,7 @@ ifeq ($(call isTargetOs, macosx), true)
|
|||||||
DEPS := $(BUILD_PROJECT_CREATOR) $(COMPILE_COMMAND_FILE) \
|
DEPS := $(BUILD_PROJECT_CREATOR) $(COMPILE_COMMAND_FILE) \
|
||||||
$(LINKER_FLAGS_FILE) $(XCODE_PROJ_VARDEPS_FILE), \
|
$(LINKER_FLAGS_FILE) $(XCODE_PROJ_VARDEPS_FILE), \
|
||||||
OUTPUT_DIR := $(TOOLS_OUTPUTDIR), \
|
OUTPUT_DIR := $(TOOLS_OUTPUTDIR), \
|
||||||
COMMAND := $(PROJECT_CREATOR_TOOL) $(TOPDIR) $(IDE_OUTPUTDIR) \
|
COMMAND := $(PROJECT_CREATOR_TOOL) $(WORKSPACE_ROOT) $(IDE_OUTPUTDIR) \
|
||||||
$(PROJECT_MAKER_DIR)/data $(COMPILE_COMMAND_FILE) \
|
$(PROJECT_MAKER_DIR)/data $(COMPILE_COMMAND_FILE) \
|
||||||
$(LINKER_FLAGS_FILE) $(XCODE_PROJ_DEBUG_OPTION), \
|
$(LINKER_FLAGS_FILE) $(XCODE_PROJ_DEBUG_OPTION), \
|
||||||
))
|
))
|
||||||
|
@ -33,7 +33,6 @@ import java.nio.file.*;
|
|||||||
import java.time.*;
|
import java.time.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.ResourceBundle.Control;
|
import java.util.ResourceBundle.Control;
|
||||||
import java.util.regex.Pattern;
|
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
import java.util.stream.IntStream;
|
import java.util.stream.IntStream;
|
||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
@ -1243,8 +1242,7 @@ public class CLDRConverter {
|
|||||||
private static Stream<String> tzDataLinkEntry() {
|
private static Stream<String> tzDataLinkEntry() {
|
||||||
try {
|
try {
|
||||||
return Files.walk(Paths.get(tzDataDir), 1)
|
return Files.walk(Paths.get(tzDataDir), 1)
|
||||||
.filter(p -> p.toFile().isFile())
|
.filter(p -> !Files.isDirectory(p))
|
||||||
.filter(p -> p.getFileName().toString().matches("africa|antarctica|asia|australasia|backward|etcetera|europe|northamerica|southamerica"))
|
|
||||||
.flatMap(CLDRConverter::extractLinks)
|
.flatMap(CLDRConverter::extractLinks)
|
||||||
.sorted();
|
.sorted();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
@ -1275,27 +1273,8 @@ public class CLDRConverter {
|
|||||||
// Note: the entries are alphabetically sorted, *except* the "world" region
|
// Note: the entries are alphabetically sorted, *except* the "world" region
|
||||||
// code, i.e., "001". It should be the last entry for the same windows time
|
// code, i.e., "001". It should be the last entry for the same windows time
|
||||||
// zone name entries. (cf. TimeZone_md.c)
|
// zone name entries. (cf. TimeZone_md.c)
|
||||||
//
|
|
||||||
// The default entries from CLDR's windowsZones.xml file can be modified
|
|
||||||
// with <tzDataDir>/tzmappings.override where mapping overrides
|
|
||||||
// can be specified.
|
|
||||||
private static Pattern OVERRIDE_PATTERN = Pattern.compile("(?<win>([^:]+:[^:]+)):(?<java>[^:]+):");
|
|
||||||
private static void generateWindowsTZMappings() throws Exception {
|
private static void generateWindowsTZMappings() throws Exception {
|
||||||
Files.createDirectories(Paths.get(DESTINATION_DIR, "windows", "conf"));
|
Files.createDirectories(Paths.get(DESTINATION_DIR, "windows", "conf"));
|
||||||
var override = Path.of(tzDataDir, "tzmappings.override");
|
|
||||||
if (override.toFile().exists()) {
|
|
||||||
Files.readAllLines(override).stream()
|
|
||||||
.map(String::trim)
|
|
||||||
.filter(o -> !o.isBlank() && !o.startsWith("#"))
|
|
||||||
.forEach(o -> {
|
|
||||||
var m = OVERRIDE_PATTERN.matcher(o);
|
|
||||||
if (m.matches()) {
|
|
||||||
handlerWinZones.put(m.group("win"), m.group("java"));
|
|
||||||
} else {
|
|
||||||
System.out.printf("Unrecognized tzmappings override: %s. Ignored%n", o);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
Files.write(Paths.get(DESTINATION_DIR, "windows", "conf", "tzmappings"),
|
Files.write(Paths.get(DESTINATION_DIR, "windows", "conf", "tzmappings"),
|
||||||
handlerWinZones.keySet().stream()
|
handlerWinZones.keySet().stream()
|
||||||
.filter(k -> k.endsWith(":001") ||
|
.filter(k -> k.endsWith(":001") ||
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2011, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -168,16 +168,10 @@ ifeq ($(call isTargetOs, windows macosx), false)
|
|||||||
# static libraries cause linking errors due to duplicate symbols.
|
# static libraries cause linking errors due to duplicate symbols.
|
||||||
LIBAWT_HEADLESS_STATIC_EXCLUDE_OBJS := systemScale.o
|
LIBAWT_HEADLESS_STATIC_EXCLUDE_OBJS := systemScale.o
|
||||||
|
|
||||||
ifneq ($(ENABLE_HEADLESS_ONLY), true)
|
|
||||||
# We cannot link with both awt_headless and awt_xawt at the same time
|
|
||||||
LIBAWT_HEADLESS_ONLY_EXPORTED := true
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(eval $(call SetupJdkLibrary, BUILD_LIBAWT_HEADLESS, \
|
$(eval $(call SetupJdkLibrary, BUILD_LIBAWT_HEADLESS, \
|
||||||
NAME := awt_headless, \
|
NAME := awt_headless, \
|
||||||
EXTRA_SRC := $(LIBAWT_HEADLESS_EXTRA_SRC), \
|
EXTRA_SRC := $(LIBAWT_HEADLESS_EXTRA_SRC), \
|
||||||
EXCLUDES := medialib, \
|
EXCLUDES := medialib, \
|
||||||
ONLY_EXPORTED := $(LIBAWT_HEADLESS_ONLY_EXPORTED), \
|
|
||||||
OPTIMIZATION := LOW, \
|
OPTIMIZATION := LOW, \
|
||||||
CFLAGS := -DHEADLESS=true $(CUPS_CFLAGS) $(FONTCONFIG_CFLAGS) \
|
CFLAGS := -DHEADLESS=true $(CUPS_CFLAGS) $(FONTCONFIG_CFLAGS) \
|
||||||
$(X_CFLAGS), \
|
$(X_CFLAGS), \
|
||||||
@ -314,8 +308,6 @@ ifeq ($(call isTargetOs, macosx), true)
|
|||||||
LIBAWT_LWAWT_EXCLUDE_FILES := fontpath.c awt_Font.c X11Color.c
|
LIBAWT_LWAWT_EXCLUDE_FILES := fontpath.c awt_Font.c X11Color.c
|
||||||
LIBAWT_LWAWT_EXCLUDES := $(TOPDIR)/src/$(MODULE)/unix/native/common/awt/medialib
|
LIBAWT_LWAWT_EXCLUDES := $(TOPDIR)/src/$(MODULE)/unix/native/common/awt/medialib
|
||||||
|
|
||||||
LIBAWT_LWAWT_STATIC_EXCLUDE_OBJS := systemScale.o
|
|
||||||
|
|
||||||
$(eval $(call SetupJdkLibrary, BUILD_LIBAWT_LWAWT, \
|
$(eval $(call SetupJdkLibrary, BUILD_LIBAWT_LWAWT, \
|
||||||
NAME := awt_lwawt, \
|
NAME := awt_lwawt, \
|
||||||
EXTRA_SRC := $(LIBAWT_LWAWT_EXTRA_SRC), \
|
EXTRA_SRC := $(LIBAWT_LWAWT_EXTRA_SRC), \
|
||||||
@ -354,7 +346,6 @@ ifeq ($(call isTargetOs, macosx), true)
|
|||||||
-framework OpenGL \
|
-framework OpenGL \
|
||||||
-framework QuartzCore \
|
-framework QuartzCore \
|
||||||
-framework Security, \
|
-framework Security, \
|
||||||
STATIC_LIB_EXCLUDE_OBJS := $(LIBAWT_LWAWT_STATIC_EXCLUDE_OBJS), \
|
|
||||||
))
|
))
|
||||||
|
|
||||||
TARGETS += $(BUILD_LIBAWT_LWAWT)
|
TARGETS += $(BUILD_LIBAWT_LWAWT)
|
||||||
|
@ -155,9 +155,6 @@ ifeq ($(ENABLE_HEADLESS_ONLY), false)
|
|||||||
|
|
||||||
ifeq ($(USE_EXTERNAL_LIBJPEG), false)
|
ifeq ($(USE_EXTERNAL_LIBJPEG), false)
|
||||||
LIBSPLASHSCREEN_EXTRA_SRC += libjavajpeg
|
LIBSPLASHSCREEN_EXTRA_SRC += libjavajpeg
|
||||||
LIBJAVA_JPEG_OBJS := $(sort $(patsubst %.c,%.o, $(filter-out imageioJPEG.c, \
|
|
||||||
$(notdir $(wildcard $(TOPDIR)/src/java.desktop/share/native/libjavajpeg/*.c)))))
|
|
||||||
LIBSPLASHSCREEN_STATIC_LIB_EXCLUDE_OBJS += $(LIBJAVA_JPEG_OBJS)
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(USE_EXTERNAL_LIBPNG), false)
|
ifeq ($(USE_EXTERNAL_LIBPNG), false)
|
||||||
@ -168,10 +165,6 @@ ifeq ($(ENABLE_HEADLESS_ONLY), false)
|
|||||||
|
|
||||||
ifeq ($(USE_EXTERNAL_LIBZ), false)
|
ifeq ($(USE_EXTERNAL_LIBZ), false)
|
||||||
LIBSPLASHSCREEN_EXTRA_SRC += java.base:libzip/zlib
|
LIBSPLASHSCREEN_EXTRA_SRC += java.base:libzip/zlib
|
||||||
LIBZIP_SRC_PATH := $(TOPDIR)/src/java.base/share/native/libzip
|
|
||||||
LIBZIP_OBJS := $(sort $(patsubst %.c,%.o, $(notdir \
|
|
||||||
$(wildcard $(LIBZIP_SRC_PATH)/*.c $(LIBZIP_SRC_PATH)/zlib/*.c))))
|
|
||||||
LIBSPLASHSCREEN_STATIC_LIB_EXCLUDE_OBJS += $(LIBZIP_OBJS)
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LIBSPLASHSCREEN_CFLAGS += -DSPLASHSCREEN -DPNG_NO_MMX_CODE \
|
LIBSPLASHSCREEN_CFLAGS += -DSPLASHSCREEN -DPNG_NO_MMX_CODE \
|
||||||
@ -214,8 +207,6 @@ ifeq ($(ENABLE_HEADLESS_ONLY), false)
|
|||||||
LIBSPLASHSCREEN_CFLAGS += -DWITH_X11 $(X_CFLAGS)
|
LIBSPLASHSCREEN_CFLAGS += -DWITH_X11 $(X_CFLAGS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LIBSPLASHSCREEN_STATIC_LIB_EXCLUDE_OBJS += systemScale.o
|
|
||||||
|
|
||||||
$(eval $(call SetupJdkLibrary, BUILD_LIBSPLASHSCREEN, \
|
$(eval $(call SetupJdkLibrary, BUILD_LIBSPLASHSCREEN, \
|
||||||
NAME := splashscreen, \
|
NAME := splashscreen, \
|
||||||
EXTRA_SRC := $(LIBSPLASHSCREEN_EXTRA_SRC), \
|
EXTRA_SRC := $(LIBSPLASHSCREEN_EXTRA_SRC), \
|
||||||
@ -266,7 +257,6 @@ ifeq ($(ENABLE_HEADLESS_ONLY), false)
|
|||||||
-framework Security, \
|
-framework Security, \
|
||||||
LIBS_aix := $(LIBDL) -liconv $(X_LIBS) -lX11 -lXext, \
|
LIBS_aix := $(LIBDL) -liconv $(X_LIBS) -lX11 -lXext, \
|
||||||
LIBS_windows := delayimp.lib gdi32.lib kernel32.lib user32.lib, \
|
LIBS_windows := delayimp.lib gdi32.lib kernel32.lib user32.lib, \
|
||||||
STATIC_LIB_EXCLUDE_OBJS := $(LIBSPLASHSCREEN_STATIC_LIB_EXCLUDE_OBJS), \
|
|
||||||
))
|
))
|
||||||
|
|
||||||
TARGETS += $(BUILD_LIBSPLASHSCREEN)
|
TARGETS += $(BUILD_LIBSPLASHSCREEN)
|
||||||
|
@ -27,5 +27,5 @@ DISABLED_WARNINGS_java += dangling-doc-comments lossy-conversions this-escape
|
|||||||
DOCLINT += -Xdoclint:all/protected \
|
DOCLINT += -Xdoclint:all/protected \
|
||||||
'-Xdoclint/package:$(call CommaList, javax.xml.catalog javax.xml.datatype \
|
'-Xdoclint/package:$(call CommaList, javax.xml.catalog javax.xml.datatype \
|
||||||
javax.xml.transform javax.xml.validation javax.xml.xpath)'
|
javax.xml.transform javax.xml.validation javax.xml.xpath)'
|
||||||
COPY += .dtd .xsd .xml .ent .mod
|
COPY += .dtd .xsd .xml
|
||||||
CLEAN += .properties
|
CLEAN += .properties
|
||||||
|
@ -38,7 +38,6 @@ ifeq ($(call isTargetOs, windows), true)
|
|||||||
NAME := javaaccessbridge, \
|
NAME := javaaccessbridge, \
|
||||||
EXTRA_SRC := common, \
|
EXTRA_SRC := common, \
|
||||||
OPTIMIZATION := LOW, \
|
OPTIMIZATION := LOW, \
|
||||||
ONLY_EXPORTED := true, \
|
|
||||||
DISABLED_WARNINGS_microsoft := 4311 4302 4312, \
|
DISABLED_WARNINGS_microsoft := 4311 4302 4312, \
|
||||||
CXXFLAGS_FILTER_OUT := -MD, \
|
CXXFLAGS_FILTER_OUT := -MD, \
|
||||||
CXXFLAGS := -MT -DACCESSBRIDGE_ARCH_64, \
|
CXXFLAGS := -MT -DACCESSBRIDGE_ARCH_64, \
|
||||||
@ -68,7 +67,6 @@ ifeq ($(call isTargetOs, windows), true)
|
|||||||
CXXFLAGS := -DACCESSBRIDGE_ARCH_64, \
|
CXXFLAGS := -DACCESSBRIDGE_ARCH_64, \
|
||||||
EXTRA_HEADER_DIRS := \
|
EXTRA_HEADER_DIRS := \
|
||||||
include/bridge, \
|
include/bridge, \
|
||||||
ONLY_EXPORTED := true, \
|
|
||||||
LDFLAGS := \
|
LDFLAGS := \
|
||||||
-def:$(ACCESSIBILITY_SRCDIR)/libwindowsaccessbridge/WinAccessBridge.DEF, \
|
-def:$(ACCESSIBILITY_SRCDIR)/libwindowsaccessbridge/WinAccessBridge.DEF, \
|
||||||
LIBS_windows := advapi32.lib comdlg32.lib gdi32.lib kernel32.lib \
|
LIBS_windows := advapi32.lib comdlg32.lib gdi32.lib kernel32.lib \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -49,7 +49,6 @@ $(eval $(call SetupJdkExecutable, BUILD_JPACKAGEAPPLAUNCHER, \
|
|||||||
LINK_TYPE := $(JPACKAGEAPPLAUNCHER_LINK_TYPE), \
|
LINK_TYPE := $(JPACKAGEAPPLAUNCHER_LINK_TYPE), \
|
||||||
OUTPUT_DIR := $(JPACKAGE_OUTPUT_DIR), \
|
OUTPUT_DIR := $(JPACKAGE_OUTPUT_DIR), \
|
||||||
SYMBOLS_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/jpackageapplauncher, \
|
SYMBOLS_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/jpackageapplauncher, \
|
||||||
ONLY_EXPORTED := true, \
|
|
||||||
SRC := applauncher, \
|
SRC := applauncher, \
|
||||||
EXTRA_SRC := common, \
|
EXTRA_SRC := common, \
|
||||||
INCLUDE_FILES := $(JPACKAGEAPPLAUNCHER_INCLUDE_FILES), \
|
INCLUDE_FILES := $(JPACKAGEAPPLAUNCHER_INCLUDE_FILES), \
|
||||||
@ -84,7 +83,6 @@ ifeq ($(call isTargetOs, linux), true)
|
|||||||
OUTPUT_DIR := $(JPACKAGE_OUTPUT_DIR), \
|
OUTPUT_DIR := $(JPACKAGE_OUTPUT_DIR), \
|
||||||
SYMBOLS_DIR := \
|
SYMBOLS_DIR := \
|
||||||
$(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjpackageapplauncheraux, \
|
$(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjpackageapplauncheraux, \
|
||||||
ONLY_EXPORTED := true, \
|
|
||||||
SRC := libapplauncher, \
|
SRC := libapplauncher, \
|
||||||
EXTRA_SRC := \
|
EXTRA_SRC := \
|
||||||
applauncher \
|
applauncher \
|
||||||
@ -129,7 +127,6 @@ ifeq ($(call isTargetOs, windows), true)
|
|||||||
NAME := wixhelper, \
|
NAME := wixhelper, \
|
||||||
OUTPUT_DIR := $(JPACKAGE_OUTPUT_DIR), \
|
OUTPUT_DIR := $(JPACKAGE_OUTPUT_DIR), \
|
||||||
SYMBOLS_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libwixhelper, \
|
SYMBOLS_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libwixhelper, \
|
||||||
ONLY_EXPORTED := true, \
|
|
||||||
OPTIMIZATION := LOW, \
|
OPTIMIZATION := LOW, \
|
||||||
EXTRA_SRC := common, \
|
EXTRA_SRC := common, \
|
||||||
CXXFLAGS_FILTER_OUT := -MD, \
|
CXXFLAGS_FILTER_OUT := -MD, \
|
||||||
@ -149,7 +146,6 @@ ifeq ($(call isTargetOs, windows), true)
|
|||||||
NAME := msiwrapper, \
|
NAME := msiwrapper, \
|
||||||
OUTPUT_DIR := $(JPACKAGE_OUTPUT_DIR), \
|
OUTPUT_DIR := $(JPACKAGE_OUTPUT_DIR), \
|
||||||
SYMBOLS_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/msiwrapper, \
|
SYMBOLS_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/msiwrapper, \
|
||||||
ONLY_EXPORTED := true, \
|
|
||||||
EXTRA_SRC := common, \
|
EXTRA_SRC := common, \
|
||||||
CXXFLAGS_FILTER_OUT := -MD, \
|
CXXFLAGS_FILTER_OUT := -MD, \
|
||||||
CXXFLAGS_windows := -MT $(JPACKAGE_CXXFLAGS_windows), \
|
CXXFLAGS_windows := -MT $(JPACKAGE_CXXFLAGS_windows), \
|
||||||
@ -168,7 +164,6 @@ ifeq ($(call isTargetOs, windows), true)
|
|||||||
OUTPUT_DIR := $(JPACKAGE_OUTPUT_DIR), \
|
OUTPUT_DIR := $(JPACKAGE_OUTPUT_DIR), \
|
||||||
SYMBOLS_DIR := \
|
SYMBOLS_DIR := \
|
||||||
$(SUPPORT_OUTPUTDIR)/native/$(MODULE)/jpackageapplauncherw, \
|
$(SUPPORT_OUTPUTDIR)/native/$(MODULE)/jpackageapplauncherw, \
|
||||||
ONLY_EXPORTED := true, \
|
|
||||||
SRC := applauncher, \
|
SRC := applauncher, \
|
||||||
EXTRA_SRC := common, \
|
EXTRA_SRC := common, \
|
||||||
OPTIMIZATION := LOW, \
|
OPTIMIZATION := LOW, \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -89,7 +89,6 @@ $(eval $(call SetupJavaCompilation, BUILD_JDK_MICROBENCHMARK, \
|
|||||||
SRC := $(MICROBENCHMARK_SRC), \
|
SRC := $(MICROBENCHMARK_SRC), \
|
||||||
BIN := $(MICROBENCHMARK_CLASSES), \
|
BIN := $(MICROBENCHMARK_CLASSES), \
|
||||||
JAVAC_FLAGS := \
|
JAVAC_FLAGS := \
|
||||||
--add-exports java.base/jdk.internal.classfile.components=ALL-UNNAMED \
|
|
||||||
--add-exports java.base/jdk.internal.classfile.impl=ALL-UNNAMED \
|
--add-exports java.base/jdk.internal.classfile.impl=ALL-UNNAMED \
|
||||||
--add-exports java.base/jdk.internal.event=ALL-UNNAMED \
|
--add-exports java.base/jdk.internal.event=ALL-UNNAMED \
|
||||||
--add-exports java.base/jdk.internal.foreign=ALL-UNNAMED \
|
--add-exports java.base/jdk.internal.foreign=ALL-UNNAMED \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
#
|
#
|
||||||
# This code is free software; you can redistribute it and/or modify it
|
# This code is free software; you can redistribute it and/or modify it
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user