From: David Paleino <dapal@debian.org>
Subject: fix incorrect usage of ctypes' find_library
Bug-Debian: http://bugs.debian.org/595603
Bug-Debian: http://bugs.debian.org/595608
Forwarded: https://github.com/libLAS/libLAS/pull/50
Applied-Upstream: https://github.com/libLAS/libLAS/commit/e528fcac317a2819b088fcbb1a080b3f4ae8fe13
Last-Update: 2014-08-03

--- a/python/liblas/core.py
+++ b/python/liblas/core.py
@@ -152,8 +152,8 @@ elif os.name == 'posix':
         lib_name = 'liblas_c.dylib'
         free = ctypes.CDLL(find_library('libc')).free
     else:
-        lib_name = 'liblas_c.so'
-        free = ctypes.CDLL(find_library('libc.so.6')).free
+        lib_name = 'liblas_c.so.3'
+        free = ctypes.CDLL(find_library('c')).free
     las = ctypes.CDLL(lib_name)
 else:
     raise LASException('Unsupported OS "%s"' % os.name)
