Skip to content

Commit 2dbe87f

Browse files
committed
8233383: Various minor fixes
Reviewed-by: erikj
1 parent 66195e8 commit 2dbe87f

8 files changed

Lines changed: 18 additions & 34 deletions

File tree

doc/building.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,10 +385,10 @@ <h3 id="getting-jdk-binaries">Getting JDK binaries</h3>
385385
<p>On Linux you can also get a JDK from the Linux distribution. On apt-based distros (like Debian and Ubuntu), <code>sudo apt-get install openjdk-&lt;VERSION&gt;-jdk</code> is typically enough to install a JDK &lt;VERSION&gt;. On rpm-based distros (like Fedora and Red Hat), try <code>sudo yum install java-&lt;VERSION&gt;-openjdk-devel</code>.</p>
386386
<h2 id="external-library-requirements">External Library Requirements</h2>
387387
<p>Different platforms require different external libraries. In general, libraries are not optional - that is, they are either required or not used.</p>
388-
<p>If a required library is not detected by <code>configure</code>, you need to provide the path to it. There are two forms of the <code>configure</code> arguments to point to an external library: <code>--with-&lt;LIB&gt;=&lt;path&gt;</code> or <code>--with-&lt;LIB&gt;-include=&lt;path to include&gt; --with-&lt;LIB&gt;-lib=&lt;path to lib&gt;</code>. The first variant is more concise, but require the include files an library files to reside in a default hierarchy under this directory. In most cases, it works fine.</p>
388+
<p>If a required library is not detected by <code>configure</code>, you need to provide the path to it. There are two forms of the <code>configure</code> arguments to point to an external library: <code>--with-&lt;LIB&gt;=&lt;path&gt;</code> or <code>--with-&lt;LIB&gt;-include=&lt;path to include&gt; --with-&lt;LIB&gt;-lib=&lt;path to lib&gt;</code>. The first variant is more concise, but require the include files and library files to reside in a default hierarchy under this directory. In most cases, it works fine.</p>
389389
<p>As a fallback, the second version allows you to point to the include directory and the lib directory separately.</p>
390390
<h3 id="freetype">FreeType</h3>
391-
<p>FreeType2 from <a href="http://www.freetype.org/">The FreeType Project</a> is not required on any platform. The exception is on Unix-based platforms when configuring such that the build artifacts will reference a system installed library, rather than bundling the JDKs own copy.</p>
391+
<p>FreeType2 from <a href="http://www.freetype.org/">The FreeType Project</a> is not required on any platform. The exception is on Unix-based platforms when configuring such that the build artifacts will reference a system installed library, rather than bundling the JDK's own copy.</p>
392392
<ul>
393393
<li>To install on an apt-based Linux, try running <code>sudo apt-get install libfreetype6-dev</code>.</li>
394394
<li>To install on an rpm-based Linux, try running <code>sudo yum install freetype-devel</code>.</li>
@@ -449,7 +449,7 @@ <h2 id="running-configure">Running Configure</h2>
449449
<p>To build the JDK, you need a &quot;configuration&quot;, which consists of a directory where to store the build output, coupled with information about the platform, the specific build machine, and choices that affect how the JDK is built.</p>
450450
<p>The configuration is created by the <code>configure</code> script. The basic invocation of the <code>configure</code> script looks like this:</p>
451451
<pre><code>bash configure [options]</code></pre>
452-
<p>This will create an output directory containing the configuration and setup an area for the build result. This directory typically looks like <code>build/linux-x64-normal-server-release</code>, but the actual name depends on your specific configuration. (It can also be set directly, see <a href="#using-multiple-configurations">Using Multiple Configurations</a>). This directory is referred to as <code>$BUILD</code> in this documentation.</p>
452+
<p>This will create an output directory containing the configuration and setup an area for the build result. This directory typically looks like <code>build/linux-x64-server-release</code>, but the actual name depends on your specific configuration. (It can also be set directly, see <a href="#using-multiple-configurations">Using Multiple Configurations</a>). This directory is referred to as <code>$BUILD</code> in this documentation.</p>
453453
<p><code>configure</code> will try to figure out what system you are running on and where all necessary build components are. If you have all prerequisites for building installed, it should find everything. If it fails to detect any component automatically, it will exit and inform you about the problem.</p>
454454
<p>Some command line examples:</p>
455455
<ul>

doc/building.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,8 @@ If a required library is not detected by `configure`, you need to provide the
473473
path to it. There are two forms of the `configure` arguments to point to an
474474
external library: `--with-<LIB>=<path>` or `--with-<LIB>-include=<path to
475475
include> --with-<LIB>-lib=<path to lib>`. The first variant is more concise,
476-
but require the include files an library files to reside in a default hierarchy
477-
under this directory. In most cases, it works fine.
476+
but require the include files and library files to reside in a default
477+
hierarchy under this directory. In most cases, it works fine.
478478

479479
As a fallback, the second version allows you to point to the include directory
480480
and the lib directory separately.
@@ -484,7 +484,7 @@ and the lib directory separately.
484484
FreeType2 from [The FreeType Project](http://www.freetype.org/) is not required
485485
on any platform. The exception is on Unix-based platforms when configuring such
486486
that the build artifacts will reference a system installed library,
487-
rather than bundling the JDKs own copy.
487+
rather than bundling the JDK's own copy.
488488

489489
* To install on an apt-based Linux, try running `sudo apt-get install
490490
libfreetype6-dev`.
@@ -623,8 +623,8 @@ bash configure [options]
623623

624624
This will create an output directory containing the configuration and setup an
625625
area for the build result. This directory typically looks like
626-
`build/linux-x64-normal-server-release`, but the actual name depends on your
627-
specific configuration. (It can also be set directly, see [Using Multiple
626+
`build/linux-x64-server-release`, but the actual name depends on your specific
627+
configuration. (It can also be set directly, see [Using Multiple
628628
Configurations](#using-multiple-configurations)). This directory is referred to
629629
as `$BUILD` in this documentation.
630630

make/Main.gmk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ interim-rmic:
7777

7878
interim-cldrconverter:
7979
+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CopyInterimCLDRConverter.gmk)
80-
80+
8181
interim-tzdb:
8282
+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) -f CopyInterimTZDB.gmk)
8383

@@ -133,7 +133,7 @@ GENSRC_TARGETS += $(sort $(GENSRC_MODULEINFO_TARGETS) \
133133
define DeclareModuleInfoRecipe
134134
$1-gensrc-moduleinfo:
135135
+($(CD) $(TOPDIR)/make && $(MAKE) $(MAKE_ARGS) \
136-
-f GensrcModuleInfo.gmk MODULE=$1)
136+
-f gensrc/GensrcModuleInfo.gmk MODULE=$1)
137137

138138
$1-gensrc: $1-gensrc-moduleinfo
139139
endef

make/UpdateBuildDocs.gmk

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -45,29 +45,13 @@ GLOBAL_SPECS_DEFAULT_CSS_FILE := $(TOPDIR)/make/data/docs-resources/resources/jd
4545

4646
DOCS_DIR := $(TOPDIR)/doc
4747

48-
$(eval $(call SetupProcessMarkdown, building, \
49-
FILES := $(DOCS_DIR)/building.md, \
48+
$(eval $(call SetupProcessMarkdown, md_docs, \
49+
FILES := $(call FindFiles, $(DOCS_DIR), *.md), \
5050
DEST := $(DOCS_DIR), \
5151
CSS := $(GLOBAL_SPECS_DEFAULT_CSS_FILE), \
5252
OPTIONS := --toc, \
5353
))
54-
TARGETS += $(building)
55-
56-
$(eval $(call SetupProcessMarkdown, testing, \
57-
FILES := $(DOCS_DIR)/testing.md, \
58-
DEST := $(DOCS_DIR), \
59-
CSS := $(GLOBAL_SPECS_DEFAULT_CSS_FILE), \
60-
OPTIONS := --toc, \
61-
))
62-
TARGETS += $(testing)
63-
64-
$(eval $(call SetupProcessMarkdown, ide, \
65-
FILES := $(DOCS_DIR)/ide.md, \
66-
DEST := $(DOCS_DIR), \
67-
CSS := $(GLOBAL_SPECS_DEFAULT_CSS_FILE), \
68-
OPTIONS := --toc, \
69-
))
70-
TARGETS += $(ide)
54+
TARGETS += $(md_docs)
7155

7256
################################################################################
7357

make/autoconf/configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
SRC#
2-
# Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
1+
#
2+
# Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it

make/autoconf/flags-cflags.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_HELPER],
597597
LANGSTD_CFLAGS="-xc99=all,no_lib"
598598
elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
599599
# MSVC doesn't support C99/C11 explicitly, unless you compile as C++:
600-
# LANGSTD_CFLAGS="/TP"
600+
# LANGSTD_CFLAGS="-TP"
601601
# but that requires numerous changes to the sources files. So we are limited
602602
# to C89/C90 plus whatever extensions Visual Studio has decided to implement.
603603
# This is the lowest bar for shared code.

make/common/JavaCompilation.gmk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ define SetupJavaCompilationBody
222222
) \
223223
)
224224
$$(call MakeDir,$$($1_BIN))
225-
# Order src files according to the order of the src dirs. Correct odering is
225+
# Order src files according to the order of the src dirs. Correct ordering is
226226
# needed for correct overriding between different source roots.
227227
$1_ALL_SRC_RAW := $$(call FindFiles, $$($1_SRC))
228228
$1_ALL_SRCS := $$($1_EXTRA_FILES) \

0 commit comments

Comments
 (0)