From f2844895d89809d17f56f6706581f16ff073dca4 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sat, 12 Jan 2013 12:59:27 -0800 Subject: [PATCH] Make __pyx_import_star_type_names static to remove link errors when freezing. --- Cython/Compiler/ModuleNode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 2a47277..3b0743b 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -1767,7 +1767,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): def generate_import_star(self, env, code): env.use_utility_code(streq_utility_code) code.putln() - code.putln("char* %s_type_names[] = {" % Naming.import_star) + code.putln("static char* %s_type_names[] = {" % Naming.import_star) for name, entry in env.entries.items(): if entry.is_type: code.putln('"%s",' % name) -- 2.7.4