Remove /usr/ccs references on Solaris

/usr/ccs/bin has been replaced by a symlink to /usr/bin since at least
Solaris 11.3, so there's no reason to use that path any longer.

This patch removes all references to it.

Tested on i386-pc-solaris2.11.

2025-11-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* configure.ac (md_exec_prefix): Don't set on Solaris.
	* configure: Regenerate.

	contrib:
	* make_sunver.pl ($elfdump): Remove ccs from path.

	gcc:
	* config/sol2.h (MD_EXEC_PREFIX): Remove.

	libstdc++-v3:
	* scripts/extract_symvers.pl: Remove ccs from elfdump path.
This commit is contained in:
Rainer Orth 2025-11-16 14:00:11 +01:00
parent 4711901000
commit d9a19e6805
5 changed files with 4 additions and 11 deletions

3
configure vendored
View File

@ -10865,8 +10865,7 @@ case "${target}" in
md_exec_prefix=/dev/env/DJDIR/bin md_exec_prefix=/dev/env/DJDIR/bin
;; ;;
*-*-hpux* | \ *-*-hpux* | \
*-*-nto-qnx* | \ *-*-nto-qnx*)
*-*-solaris2*)
md_exec_prefix=/usr/ccs/bin md_exec_prefix=/usr/ccs/bin
;; ;;
esac esac

View File

@ -3049,8 +3049,7 @@ case "${target}" in
md_exec_prefix=/dev/env/DJDIR/bin md_exec_prefix=/dev/env/DJDIR/bin
;; ;;
*-*-hpux* | \ *-*-hpux* | \
*-*-nto-qnx* | \ *-*-nto-qnx*)
*-*-solaris2*)
md_exec_prefix=/usr/ccs/bin md_exec_prefix=/usr/ccs/bin
;; ;;
esac esac

View File

@ -66,7 +66,7 @@ foreach $file (@ARGV) {
# columns. # columns.
# The path to elfdump. # The path to elfdump.
my $elfdump = "/usr/ccs/bin/elfdump"; my $elfdump = "/usr/bin/elfdump";
if (-f $elfdump) { if (-f $elfdump) {
open ELFDUMP,$elfdump.' -s '.(join ' ',@OBJECTS).'|' or die $!; open ELFDUMP,$elfdump.' -s '.(join ' ',@OBJECTS).'|' or die $!;

View File

@ -158,11 +158,6 @@ along with GCC; see the file COPYING3. If not see
"%{!symbolic:\ "%{!symbolic:\
%{p|pg:-ldl} -lc}" %{p|pg:-ldl} -lc}"
#ifndef CROSS_DIRECTORY_STRUCTURE
#undef MD_EXEC_PREFIX
#define MD_EXEC_PREFIX "/usr/ccs/bin/"
#endif
/* Enable constructor priorities if the configured linker supports it. */ /* Enable constructor priorities if the configured linker supports it. */
#undef SUPPORTS_INIT_PRIORITY #undef SUPPORTS_INIT_PRIORITY
#define SUPPORTS_INIT_PRIORITY HAVE_INITFINI_ARRAY_SUPPORT #define SUPPORTS_INIT_PRIORITY HAVE_INITFINI_ARRAY_SUPPORT

View File

@ -95,7 +95,7 @@ close PVS or die "pvs error";
# Ignore error output to avoid getting confused by # Ignore error output to avoid getting confused by
# .gnu.version_r: zero sh_entsize information, expected 0x1 # .gnu.version_r: zero sh_entsize information, expected 0x1
# warning with Solaris 11 elfdump on gld-produced shared objects. # warning with Solaris 11 elfdump on gld-produced shared objects.
open ELFDUMP, "/usr/ccs/bin/elfdump -s -N .dynsym $lib 2>/dev/null |" or die $!; open ELFDUMP, "/usr/bin/elfdump -s -N .dynsym $lib 2>/dev/null |" or die $!;
while (<ELFDUMP>) { while (<ELFDUMP>) {
chomp; chomp;