pypy3.9/008-fix-dynamic-symbols-script.patch

16 lines
544 B
Diff
Raw Normal View History

diff --git a/pypy/translator/platform/posix.py b/pypy/translator/platform/posix.py
--- a/pypy/translator/platform/posix.py
+++ b/pypy/translator/platform/posix.py
@@ -48,8 +48,10 @@
response_file = self._make_response_file("dynamic-symbols-")
f = response_file.open("w")
f.write("{\n")
+ f.write(" global:\n")
for sym in eci.export_symbols:
- f.write("%s;\n" % (sym,))
+ f.write(" %s;\n" % (sym,))
+ f.write(" local:*;\n")
f.write("};")
f.close()