From 1832ee4671cc3e3c7356d24f9c4559031872c8b1 Mon Sep 17 00:00:00 2001 From: knodlseder <> Date: Thu, 14 Jul 2011 08:01:10 +0000 Subject: [PATCH] add runtime library paths --- pyext/setup.py.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyext/setup.py.in b/pyext/setup.py.in index a7a8526..9fa8ee5 100644 --- a/pyext/setup.py.in +++ b/pyext/setup.py.in @@ -61,7 +61,7 @@ if (len(sys.argv) > 3): include_dirs = ['@top_srcdir@/include'] data_files = glob.glob('@top_srcdir@/pyext/*.i') library_dirs = ['../src/.libs'] -runtime_library_dirs = [] +runtime_library_dirs = ['@libdir@'] libraries = [libgamma] # Add cfitsio library only if available @@ -87,6 +87,7 @@ for extra_lib_path in extra_lib_paths: dir = extra_lib_path.lstrip('-L') if len(dir) > 0: library_dirs.append(extra_lib_path.lstrip('-L')) + runtime_library_dirs(extra_lib_path.lstrip('-L')) # Get extra include directories extra_inc_paths = ('@CPPFLAGS@').split(' ') -- libgit2 0.21.4