summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nonguix/build/binary-build-system.scm4
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
(map