aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Boor <florian.boor@kernelconcepts.de>2009-05-18 15:25:02 +0200
committerFlorian Boor <florian.boor@kernelconcepts.de>2009-05-18 15:25:02 +0200
commit1fc28fb0486c14b791377fc21c96c0323cc1e8da (patch)
tree5997a08201d13dd520fea4ecd65f61d0bc9bb1b5
parent798c780a3a016e56d9b8849cf8a07521b6e402a9 (diff)
downloadopenembedded-1fc28fb0486c14b791377fc21c96c0323cc1e8da.tar.gz
python: Add patch to fix linking
-rw-r--r--recipes/python/python-2.6.1/07-export-grammer.patch10
-rw-r--r--recipes/python/python_2.6.1.bb1
2 files changed, 11 insertions, 0 deletions
diff --git a/recipes/python/python-2.6.1/07-export-grammer.patch b/recipes/python/python-2.6.1/07-export-grammer.patch
new file mode 100644
index 0000000000..b7ec2bbc65
--- /dev/null
+++ b/recipes/python/python-2.6.1/07-export-grammer.patch
@@ -0,0 +1,10 @@
+--- Python-2.6.1.orig/Parser/printgrammar.c 2008-04-13 15:35:56.000000000 -0500
++++ Python-2.6.1/Parser/printgrammar.c 2008-12-28 00:01:28.675633800 -0600
+@@ -16,6 +16,7 @@
+ fprintf(fp, "/* Generated by Parser/pgen */\n\n");
+ fprintf(fp, "#include \"pgenheaders.h\"\n");
+ fprintf(fp, "#include \"grammar.h\"\n");
++ fprintf(fp, "PyAPI_DATA(grammar) _PyParser_Grammar;\n");
+ printdfas(g, fp);
+ printlabels(g, fp);
+ fprintf(fp, "grammar _PyParser_Grammar = {\n");
diff --git a/recipes/python/python_2.6.1.bb b/recipes/python/python_2.6.1.bb
index e50ca43aab..8ca51ae3bf 100644
--- a/recipes/python/python_2.6.1.bb
+++ b/recipes/python/python_2.6.1.bb
@@ -12,6 +12,7 @@ SRC_URI = "\
file://04-default-is-optimized.patch;patch=1 \
file://05-enable-ctypes-cross-build.patch;patch=1 \
file://06-libffi-enable-default-mips.patch;patch=1 \
+ file://07-export-grammer.patch;patch=1 \
file://99-ignore-optimization-flag.patch;patch=1 \
\
# not yet pushed forward