1 Hard code library loading
3 Shortcut the search for the libraries in case the built in
4 find_library is broken.
6 As buildroot does not ship any of the external programs that the core
7 procedure use to find libraries use the canonical name of the shared
10 In this case this affects loading libftdi and libusb.
12 This should be reliable as we specify said libs as dependencies of
15 Signed-off-by: Christian Kellermann <christian.kellermann@solectrix.de>
18 diff -purN pylibftdi-0.15.0.orig/pylibftdi/driver.py pylibftdi-0.15.0/pylibftdi/driver.py
19 --- pylibftdi-0.15.0.orig/pylibftdi/driver.py 2015-04-26 22:41:39.000000000 +0200
20 +++ pylibftdi-0.15.0/pylibftdi/driver.py 2017-02-27 13:08:56.502958000 +0100
21 @@ -121,8 +121,8 @@ class Driver(object):
22 lib = getattr(cdll, lib_path)
25 - raise LibraryMissingError('{} library not found (search: {})'.format(
27 + return cdll.LoadLibrary(name + '.so')