Archived
1
0
Fork 0

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 <maxim.cournoyer@gmail.com>
This commit is contained in:
nathan 2023-07-10 23:22:48 -04:00 committed by Maxim Cournoyer
parent a87d722570
commit 05f08c11ff
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -103,14 +103,13 @@ devices on various operating systems.")
(arguments (arguments
(list #:configure-flags (list #:configure-flags
#~(list "--disable-static" #~(list "--disable-static"
;; Extending the RUNPATH is necessary, otherwise loading ;; Provide the absolute file name of libusb-1.0.so so
;; the libusb-1.0.so.0 library fails. ;; dlopen works.
(string-append "LDFLAGS=-Wl,-rpath=" (string-append "LIBUSB_1_0_SONAME="
#$(this-package-input "libusb") "/lib")))) #$(this-package-input "libusb")
(native-inputs "/lib/libusb-1.0.so"))))
(list autoconf automake libtool pkg-config)) (native-inputs (list autoconf automake libtool pkg-config))
(inputs (inputs (list libusb))
(list libusb))
(home-page "https://libusb.info") (home-page "https://libusb.info")
(synopsis "Compatibility shim for libusb") (synopsis "Compatibility shim for libusb")
(description (description