Merge remote-tracking branch 'OE-2.1/master' into vuplus-3.0
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-devtools / python / python / 99-ignore-optimization-flag.patch
1 Upstream-Status: Inappropriate [embedded specific]
2
3 # Reinstate the empty -O option to fix weird mixing of native and target
4 # binaries and libraries with LD_LIBRARY_PATH when host==target
5 #
6 # Signed-off-by: Denys Dmytriyenko <denis@denix.org>
7
8 Index: Python-2.6.6/Modules/main.c
9 ===================================================================
10 --- Python-2.6.6.orig/Modules/main.c
11 +++ Python-2.6.6/Modules/main.c
12 @@ -327,6 +327,9 @@ Py_Main(int argc, char **argv)
13  
14          /* case 'J': reserved for Jython */
15  
16 +       case 'O': /* ignore it */
17 +               break;
18 +
19          case 'N':
20              Py_OptimizeFlag=0;
21              break;