diff options
author | nathan <[email protected]> | 2023-07-10 23:22:48 -0400 |
---|---|---|
committer | Maxim Cournoyer <[email protected]> | 2023-09-05 23:22:42 -0400 |
commit | 05f08c11ff9b19716dc1a7d0129eb4c2c041a275 (patch) | |
tree | 94f286476125f18d99716a221614dc24b57aedaa | |
parent | a87d7225709370a635e3c443fe7eba4c206e1dcd (diff) |
gnu: libusb-compat: Specify the absolute file name for libusb.
Refine the fix for loading libusb correctly.
* gnu/packages/libusb.scm (libusb) [arguments]
<configure-flags>: New LIBUSB_1_0_SONAME flag.
Modified-by: Maxim Cournoyer <[email protected]>
-rw-r--r-- | gnu/packages/libusb.scm | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/gnu/packages/libusb.scm b/gnu/packages/libusb.scm index 1d514c11b7..e615b81ea3 100644 --- a/gnu/packages/libusb.scm +++ b/gnu/packages/libusb.scm @@ -103,14 +103,13 @@ devices on various operating systems.") (arguments (list #:configure-flags #~(list "--disable-static" - ;; Extending the RUNPATH is necessary, otherwise loading - ;; the libusb-1.0.so.0 library fails. - (string-append "LDFLAGS=-Wl,-rpath=" - #$(this-package-input "libusb") "/lib")))) - (native-inputs - (list autoconf automake libtool pkg-config)) - (inputs - (list libusb)) + ;; Provide the absolute file name of libusb-1.0.so so + ;; dlopen works. + (string-append "LIBUSB_1_0_SONAME=" + #$(this-package-input "libusb") + "/lib/libusb-1.0.so")))) + (native-inputs (list autoconf automake libtool pkg-config)) + (inputs (list libusb)) (home-page "https://libusb.info") (synopsis "Compatibility shim for libusb") (description |