mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
gnu: unionfs-fuse: Add statically-linked variant.
* gnu/packages/linux.scm (unionfs-fuse/static): New variable.
This commit is contained in:
parent
7f3673f21d
commit
ed7485886e
1 changed files with 16 additions and 0 deletions
|
@ -945,3 +945,19 @@ (define-public unionfs-fuse
|
|||
\"aggregate\" the contents of several directories into a single mount point.
|
||||
UnionFS-FUSE additionally supports copy-on-write.")
|
||||
(license bsd-3)))
|
||||
|
||||
(define-public unionfs-fuse/static
|
||||
(package (inherit unionfs-fuse)
|
||||
(synopsis "User-space union file system (statically linked)")
|
||||
(name (string-append (package-name unionfs-fuse) "-static"))
|
||||
(source (origin (inherit (package-source unionfs-fuse))
|
||||
(modules '((guix build utils)))
|
||||
(snippet
|
||||
;; Add -ldl to the libraries, because libfuse.a needs that.
|
||||
'(substitute* "src/CMakeLists.txt"
|
||||
(("target_link_libraries(.*)\\)" _ libs)
|
||||
(string-append "target_link_libraries"
|
||||
libs " dl)"))))))
|
||||
(arguments
|
||||
'(#:tests? #f
|
||||
#:configure-flags '("-DCMAKE_EXE_LINKER_FLAGS=-static")))))
|
||||
|
|
Loading…
Reference in a new issue