Commit 1832ee4671cc3e3c7356d24f9c4559031872c8b1
1 parent
9d16935a
add runtime library paths
Showing
1 changed file
with
2 additions
and
1 deletions
pyext/setup.py.in
| ... | ... | @@ -61,7 +61,7 @@ if (len(sys.argv) > 3): |
| 61 | 61 | include_dirs = ['@top_srcdir@/include'] |
| 62 | 62 | data_files = glob.glob('@top_srcdir@/pyext/*.i') |
| 63 | 63 | library_dirs = ['../src/.libs'] |
| 64 | -runtime_library_dirs = [] | |
| 64 | +runtime_library_dirs = ['@libdir@'] | |
| 65 | 65 | libraries = [libgamma] |
| 66 | 66 | |
| 67 | 67 | # Add cfitsio library only if available |
| ... | ... | @@ -87,6 +87,7 @@ for extra_lib_path in extra_lib_paths: |
| 87 | 87 | dir = extra_lib_path.lstrip('-L') |
| 88 | 88 | if len(dir) > 0: |
| 89 | 89 | library_dirs.append(extra_lib_path.lstrip('-L')) |
| 90 | + runtime_library_dirs(extra_lib_path.lstrip('-L')) | |
| 90 | 91 | |
| 91 | 92 | # Get extra include directories |
| 92 | 93 | extra_inc_paths = ('@CPPFLAGS@').split(' ') | ... | ... |