Merge branch 'vuplus-1.6' of 192.168.102.66:/var/ikseong/repo/openembedded into test_0921
[vuplus_openembedded] / recipes / python / python-2.6.7 / python-module-rpath-fix.patch
1 Index: Python-2.6.5/setup.py
2 ===================================================================
3 --- Python-2.6.5.orig/setup.py
4 +++ Python-2.6.5/setup.py
5 @@ -973,13 +973,18 @@ class PyBuildExt(build_ext):
6                  sqlite_extra_link_args = ('-Wl,-search_paths_first',)
7              else:
8                  sqlite_extra_link_args = ()
9 +           # Check weather we are cross compiling
10 +            if (os.environ.get('HOST_SYS') != os.environ.get('BUILD_SYS')):
11 +                runtime_library_dirs_temp=[os.environ.get('libdir')]
12 +           else:
13 +               runtime_library_dirs_temp=sqlite_libdir
14  
15              exts.append(Extension('_sqlite3', sqlite_srcs,
16                                    define_macros=sqlite_defines,
17                                    include_dirs=["Modules/_sqlite",
18                                                  sqlite_incdir],
19                                    library_dirs=sqlite_libdir,
20 -                                  runtime_library_dirs=sqlite_libdir,
21 +                                  runtime_library_dirs=runtime_library_dirs_temp,
22                                    extra_link_args=sqlite_extra_link_args,
23                                    libraries=["sqlite3",]))
24          else: