mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-25 02:03:42 +00:00
check_cxx_runtime: ignore glibc symbol versions
nm on glibc prints __cxa_atexit@GLIBC_2.2.5, which the allowlist for the libc-provided __cxa_atexit/__cxa_finalize did not match.
This commit is contained in:
@@ -40,7 +40,8 @@ def undefined_symbols(nm, path):
|
||||
line = line.strip()
|
||||
if not line or line.endswith(":"):
|
||||
continue # archive member headers
|
||||
symbols.add(line.split()[-1])
|
||||
# glibc nm prints versioned names (__cxa_atexit@GLIBC_2.2.5).
|
||||
symbols.add(line.split()[-1].split("@")[0])
|
||||
return symbols
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user