commit:     022a21b5c75ee4e85d59801f78f332a9b26e5be5
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Dec  4 18:18:07 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Dec  4 18:18:07 2025 +0000
URL:        
https://gitweb.gentoo.org/proj/blas-lapack-aux-wrapper.git/commit/?id=022a21b5

Include all types of symbols defined in the library

Bug: https://bugs.gentoo.org/967081
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 make-symbol-files.py | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/make-symbol-files.py b/make-symbol-files.py
index f0998b9..86cbeb2 100755
--- a/make-symbol-files.py
+++ b/make-symbol-files.py
@@ -10,12 +10,11 @@ from typing import Generator
 
 
 def get_symbols(path: Path) -> Generator[str]:
-    for line in subprocess.run(["nm", "-D", "-P", str(path)],
+    for line in subprocess.run(["nm", "-D", "-P", "-U", str(path)],
                                stdout=subprocess.PIPE,
                                check=True).stdout.decode().splitlines():
-        sym, typ, _ = line.split(" ", 2)
-        if typ in ("T", "W"):
-            yield sym
+        sym, _ = line.split(" ", 1)
+        yield sym
 
 
 def main():

Reply via email to