Commit 96a08444916fa9669752c3331d83a24916ee8c8b

Authored by knodlseder
1 parent 2dd96d5e

Set @prefix@/lib as the default runtime library directory if this directory exis…

…ts. This allows finding shared libraries on some systems.
Showing 1 changed file with 6 additions and 1 deletions
pyext/setup.py.in
... ... @@ -61,9 +61,14 @@ 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 = ['@libdir@']
65 64 libraries = [libgamma]
66 65  
  66 +# Set default runtime library directories
  67 +if os.path.exists('@prefix@/lib'):
  68 + runtime_library_dirs = ['@prefix@/lib']
  69 +else:
  70 + runtime_library_dirs = []
  71 +
67 72 # Add cfitsio library only if available
68 73 if '@WITH_CFITSIO_TRUE@' != '#':
69 74 print "Link cfitsio into Python bindings."
... ...