aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/python/python-2.7.1/99-ignore-optimization-flag.patch
blob: f068ecedafdb597534eef585a02a97d0a8240131 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Reinstate the empty -O option to fix weird mixing of native and target
# binaries and libraries with LD_LIBRARY_PATH when host==target
#
# Signed-off-by: Denys Dmytriyenko <denis@denix.org>

Index: Python-2.7.1/Modules/main.c
===================================================================
--- Python-2.7.1.orig/Modules/main.c	2010-06-13 02:50:39.000000000 -0400
+++ Python-2.7.1/Modules/main.c	2010-12-26 10:09:34.300455892 -0500
@@ -329,8 +329,7 @@
 
         /* case 'J': reserved for Jython */
 
-        case 'O':
-            Py_OptimizeFlag++;
+        case 'O': /* ignore it */
             break;
 
         case 'B':