If a shlib_variant is used then the dynamic version information for
symbols will be different from what the symbol presence test was
expecting. We just make it more liberal about what it accepts as dynamic
version information.
Fixes #17366
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17372)
# Drop the first space and everything following it
s| .*||;
# Drop OpenSSL dynamic version information if there is any
- s|\@\@OPENSSL_[0-9._]+[a-z]?$||;
+ s|\@\@.+$||;
# Return the result
$_
}