Update minimum gcc version in 'bldlvlck'

Update minimum gcc version from 4.6.2 to 6.2.0.
If $CC environment variable is set, use that instead of 'gcc'.
This commit is contained in:
Bill Lewis
2021-12-11 15:58:57 -05:00
parent 58985c23a0
commit ac6cdd2b81

View File

@@ -7,7 +7,7 @@
# This perl script checks the user's system for the required levels of
# software needed to properly build Hercules from the source repository.
#
# Updated 3 DEC 2021
# Updated 11 DEC 2021
#
#****************************************************************************
@@ -34,7 +34,7 @@ my @req = qw(
cmake 3.2 0 https://cmake.org
flex 2.5 0 http://www.gnu.org/directory/flex.html
gawk 3.0 0 http://www.gnu.org/directory/gawk.html
gcc 4.6.2 1 http://www.gnu.org/directory/gcc.html
gcc 6.2.0 1 http://www.gnu.org/directory/gcc.html
grep 1 0 http://www.gnu.org/directory/grep.html
ld 2.22 0 http://www.gnu.org/directory/binutils.html
libtool 2.4.6 1 https://sdl-hercules-390.github.io/html/hercinst.html
@@ -245,8 +245,11 @@ sub weird {
return;
}
if ($facility eq 'gcc') {
if (present($facility, $url)) {
my $cc = $ENV{"CC"} || "gcc";
if (present($cc, $url)) {
my @resp;
if ($^O eq 'netbsd') {
@resp = `$facility -dumpversion`;
@@ -263,7 +266,7 @@ sub weird {
print "$msg\t$facility (32-bit) requires $gcc_i686_required, found $instversion\n";
} else {
$msg = ckvers($level, $instversion);
print "$msg\t$facility requires $level, found $instversion\n";
print "$msg\t$facility requires $level, found $cc $instversion\n";
}
print "\tURL: $url\n" if $msg eq 'UPGRADE';
}
@@ -282,7 +285,7 @@ sub weird {
print "\t$resp[0]\n";
if ($resp[0] =~ /sed: unknown option/) {
# print "netbsd: \n";
}
}
print "$msg\t$facility requires $level, found $instversion\n";
print "\tURL: $url\n" if $msg eq 'UPGRADE';
@@ -297,7 +300,7 @@ sub weird {
print "\t$resp[0]\n";
if ($resp[0] =~ /sed: unknown option/) {
# print "netbsd: \n";
}
}
print "$msg\t$facility requires $level, found $instversion\n";
print "\tURL: $url\n" if $msg eq 'UPGRADE';