1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
From: David Paleino <dapal@debian.org>
Subject: fix incorrect usage of ctypes' find_library
Bug-Debian: http://bugs.debian.org/595603
http://bugs.debian.org/595608
Forwarded: no
---
build-tree/libLAS-1.2.1/liblas/core.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/liblas/core.py
+++ b/liblas/core.py
@@ -131,8 +131,8 @@ elif os.name == 'posix':
lib_name = 'liblas.dylib'
free = ctypes.CDLL(find_library('libc')).free
else:
- lib_name = 'liblas.so'
- free = ctypes.CDLL(find_library('libc.so.6')).free
+ lib_name = 'liblas.so.1'
+ free = ctypes.CDLL(find_library('c')).free
las = ctypes.CDLL(lib_name)
else:
raise LASException('Unsupported OS "%s"' % os.name)
|