path: root/nonguix
diff options
authorPierre Neidhardt <>2020-01-16 17:45:53 +0100
committerPierre Neidhardt <>2020-01-16 17:47:48 +0100
commitaeaa8a02f56d94a74638f99698bdc7a014145c83 (patch)
treec5984083eafa76e4f69be0ad690b7451e758cd59 /nonguix
parent7007b3d0f2d98a78b31abf5f93b8f5d9cec943e9 (diff)
nonguix: Add support for libraries for an extension other than ".so".
* nonguix/build-system/binary.scm (binary-build): Don't fail when setting the interpreter of libraries that don't contain ".so" in their name.
Diffstat (limited to 'nonguix')
1 files changed, 3 insertions, 1 deletions
diff --git a/nonguix/build/binary-build-system.scm b/nonguix/build/binary-build-system.scm
index 30b55e5..984f38c 100644
--- a/nonguix/build/binary-build-system.scm
+++ b/nonguix/build/binary-build-system.scm
@@ -82,7 +82,9 @@ Both executables and dynamic libraries are accepted.
The inputs are optional when the file is an executable."
(define (binary-patch binary interpreter runpath)
(unless (string-contains binary ".so")
- (invoke "patchelf" "--set-interpreter" interpreter binary))
+ ;; Use `system*' and not `invoke' since this may raise an error if
+ ;; library does not end with .so.
+ (system* "patchelf" "--set-interpreter" interpreter binary))
(when runpath
(let ((rpath (string-join