pypy/008-fix-dynamic-symbols-script.patch
David Malcolm 26f62305fe 1.9-3
* Tue Jul 10 2012 David Malcolm <dmalcolm@redhat.com> - 1.9-3
- log all output from "make" (patch 6)
- disable the MOTD at startup (patch 7)
- hide symbols from the dynamic linker (patch 8)
- add PyInt_AsUnsignedLongLongMask (patch 9)
- capture the Makefile, the typeids.txt, and the dynamic-symbols file within
the debuginfo package
2012-07-10 16:45:52 -04:00

16 lines
544 B
Diff

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()