mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2024-12-23 15:24:52 +01:00
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.
This commit is contained in:
parent
7007b3d0f2
commit
aeaa8a02f5
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue