Skip to content

Commit 7008192

Browse files
author
alanbur
committed
8165161: Solaris: /usr/ccs /opt/sfw and /opt/csw are dead, references should be expunged
Reviewed-by: erikj
1 parent 70fa6d2 commit 7008192

9 files changed

+10
-390
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
### It also performs some sanity checks on make.
2929
###
3030

31-
# The shell code below will be executed on /usr/ccs/bin/make on Solaris, but not in GNU Make.
32-
# /usr/ccs/bin/make lacks basically every other flow control mechanism.
31+
# The shell code below will be executed on /usr/bin/make on Solaris, but not in GNU Make.
32+
# /usr/bin/make lacks basically every other flow control mechanism.
3333
.TEST_FOR_NON_GNUMAKE:sh=echo You are not using GNU Make/gmake, this is a requirement. Check your path. 1>&2 && exit 1
3434

3535
# The .FEATURES variable is likely to be unique for GNU Make.

README-builds.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -1110,8 +1110,7 @@ <h2>Appendix B: GNU make</h2>
11101110
<li>Place the location of the GNU make binary in the <code>PATH</code>.</li>
11111111
<li><strong>Solaris:</strong> Do NOT use <code>/usr/bin/make</code> on Solaris. If your Solaris system
11121112
has the software from the Solaris Developer Companion CD installed, you
1113-
should try and use <code>gmake</code> which will be located in either the <code>/usr/bin</code>,
1114-
<code>/opt/sfw/bin</code> or <code>/usr/sfw/bin</code> directory.</li>
1113+
should try and use <code>/usr/bin/gmake</code> or <code>/usr/gnu/bin/make</code>.</li>
11151114
<li><strong>Windows:</strong> Make sure you start your build inside a bash shell.</li>
11161115
<li><strong>Mac OS X:</strong> The XCode "command line tools" must be installed on your Mac.</li>
11171116
</ul>

README-builds.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1016,8 +1016,7 @@ about using GNU make:
10161016
* Place the location of the GNU make binary in the `PATH`.
10171017
* **Solaris:** Do NOT use `/usr/bin/make` on Solaris. If your Solaris system
10181018
has the software from the Solaris Developer Companion CD installed, you
1019-
should try and use `gmake` which will be located in either the `/usr/bin`,
1020-
`/opt/sfw/bin` or `/usr/sfw/bin` directory.
1019+
should try and use `/usr/bin/gmake` or `/usr/gnu/bin/make`.
10211020
* **Windows:** Make sure you start your build inside a bash shell.
10221021
* **Mac OS X:** The XCode "command line tools" must be installed on your Mac.
10231022

common/autoconf/basics.m4

-5
Original file line numberDiff line numberDiff line change
@@ -750,11 +750,6 @@ AC_DEFUN_ONCE([BASIC_SETUP_DEVKIT],
750750
# Prepend the extra path to the global path
751751
BASIC_PREPEND_TO_PATH([PATH],$EXTRA_PATH)
752752
753-
if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
754-
# Add extra search paths on solaris for utilities like ar, as, dtrace etc...
755-
PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin:/usr/sbin"
756-
fi
757-
758753
AC_MSG_CHECKING([for sysroot])
759754
AC_MSG_RESULT([$SYSROOT])
760755
AC_MSG_CHECKING([for toolchain path])

common/autoconf/flags.m4

+1-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ AC_DEFUN([FLAGS_SETUP_SYSROOT_FLAGS],
8888
# inlining of system functions and intrinsics.
8989
$1SYSROOT_CFLAGS="-I-xbuiltin -I[$]$1SYSROOT/usr/include"
9090
$1SYSROOT_LDFLAGS="-L[$]$1SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \
91-
-L[$]$1SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \
92-
-L[$]$1SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR"
91+
-L[$]$1SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR"
9392
fi
9493
elif test "x$TOOLCHAIN_TYPE" = xgcc; then
9594
$1SYSROOT_CFLAGS="--sysroot=[$]$1SYSROOT"

common/autoconf/generated-configure.sh

+4-361
Large diffs are not rendered by default.

common/autoconf/lib-freetype.m4

-5
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,6 @@ AC_DEFUN_ONCE([LIB_SETUP_FREETYPE],
357357
fi
358358
fi
359359
360-
if test "x$FOUND_FREETYPE" != xyes; then
361-
FREETYPE_BASE_DIR="$SYSROOT/usr/sfw"
362-
LIB_CHECK_POTENTIAL_FREETYPE([$FREETYPE_BASE_DIR/include], [$FREETYPE_BASE_DIR/lib], [well-known location])
363-
fi
364-
365360
if test "x$FOUND_FREETYPE" != xyes; then
366361
FREETYPE_BASE_DIR="$SYSROOT/usr"
367362
if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then

common/autoconf/lib-x11.m4

+1-3
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ AC_DEFUN_ONCE([LIB_SETUP_X11],
9191
if test "x$OPENJDK_TARGET_OS" = xsolaris; then
9292
OPENWIN_HOME="/usr/openwin"
9393
X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions"
94-
X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \
95-
-L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \
96-
-R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \
94+
X_LIBS="-L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \
9795
-R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR"
9896
fi
9997

common/autoconf/toolchain.m4

-8
Original file line numberDiff line numberDiff line change
@@ -294,14 +294,6 @@ AC_DEFUN_ONCE([TOOLCHAIN_PRE_DETECTION],
294294
fi
295295
AC_SUBST(TOOLCHAIN_VERSION)
296296
297-
# For solaris we really need solaris tools, and not the GNU equivalent.
298-
# The build tools on Solaris reside in /usr/ccs (C Compilation System),
299-
# so add that to path before starting to probe.
300-
# FIXME: This was originally only done for AS,NM,GNM,STRIP,OBJCOPY,OBJDUMP.
301-
if test "x$OPENJDK_BUILD_OS" = xsolaris; then
302-
PATH="/usr/ccs/bin:$PATH"
303-
fi
304-
305297
# Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to
306298
# override all other locations.
307299
if test "x$TOOLCHAIN_PATH" != x; then

0 commit comments

Comments
 (0)