Commit 60ccf93d authored by Richard Levitte's avatar Richard Levitte
Browse files

util/mkdef.pl: Make symbol version processing Linux only



For Windows, we care which way it is, the resulting file is just a pile
of symbols.  For VMS, we really need to care about the numeric ordering,
and getting the symbols sorted by symbol version too didn't agree with
that.

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3804)

(cherry picked from commit 0e288c2a)
parent c2b980d8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1244,7 +1244,6 @@ EOF
					if(!$do_update);
			} else {
				(my $n, my $symversion, my $dummy) = split /\\/, $nums{$s};
				next if $symversion ne $thisversion;
				my %pf = ();
				my $p = ($i =~ /^[^:]*:([^:]*):/,$1);
				my $a = ($i =~ /^[^:]*:[^:]*:[^:]*:([^:]*)/,$1);
@@ -1257,6 +1256,7 @@ EOF
					}
					$prev = $s2;	# To warn about duplicates...
					if($linux) {
						next if $symversion ne $thisversion;
						if ($symversion ne $prevsymversion) {
							if ($prevsymversion ne "") {
								if ($prevprevsymversion ne "") {
@@ -1312,7 +1312,7 @@ EOF
				}
			}
		}
	} while ($thisversion ne $currversion);
	} while ($linux && $thisversion ne $currversion);
	if ($linux) {
		if ($prevprevsymversion ne "") {
			print OUT "    local: *;\n} OPENSSL_$prevprevsymversion;\n\n";