aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/libusb.scm
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-09-02 15:43:18 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-09-02 15:49:30 -0400
commitddd8bb104ae45983217ab3ae40109a9aca5f4155 (patch)
treee7744fb27361a79b25c9ff6d69542e543caaebdc /gnu/packages/libusb.scm
parent5ff0c8997a2ddf71af477883584a5f9ccd9b757f (diff)
downloadguix-ddd8bb104ae45983217ab3ae40109a9aca5f4155.tar
guix-ddd8bb104ae45983217ab3ae40109a9aca5f4155.tar.gz
gnu: libusb-compat: Add libusb to RUNPATH.
This avoids the error: teensy_loader_cli: error while loading libusb-1.0.so.0 from libusb-0.1.so.4: libusb-1.0.so.0: cannot open shared object file: No such file or directory e.g. when running teensy_loader_cli, which uses libusb-compat. * gnu/packages/libusb.scm (libusb-compat) [arguments] <configure-flags>: New LDFLAGS variable.
Diffstat (limited to 'gnu/packages/libusb.scm')
-rw-r--r--gnu/packages/libusb.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/packages/libusb.scm b/gnu/packages/libusb.scm
index 5ebae9fe1c..1d514c11b7 100644
--- a/gnu/packages/libusb.scm
+++ b/gnu/packages/libusb.scm
@@ -102,7 +102,11 @@ devices on various operating systems.")
(build-system gnu-build-system)
(arguments
(list #:configure-flags
- #~(list "--disable-static")))
+ #~(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