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