From aeaa8a02f56d94a74638f99698bdc7a014145c83 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Thu, 16 Jan 2020 17:45:53 +0100 Subject: 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. --- nonguix/build/binary-build-system.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nonguix/build') 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 -- cgit v1.2.3