mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-13 14:40:21 -05:00
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:
parent
a87d722570
commit
05f08c11ff
1 changed files with 7 additions and 8 deletions
|
@ -103,14 +103,13 @@ (define-public libusb-compat
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue