mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: libarchive: Embed absolute references to required libraries in .la file.
* gnu/packages/backup.scm (libarchive)[arguments]: Substitute -lfoo compiler flags with absolute references in libarchive.la, in addition to libarchive.pc.
This commit is contained in:
parent
f8071e9b3b
commit
1664e2ab39
1 changed files with 3 additions and 1 deletions
|
@ -258,7 +258,9 @@ (define-public libarchive
|
|||
(zlib (assoc-ref inputs "zlib"))
|
||||
(zstd (assoc-ref inputs "zstd"))
|
||||
(bzip2 (assoc-ref inputs "bzip2")))
|
||||
(substitute* (string-append lib "/pkgconfig/libarchive.pc")
|
||||
;; Embed absolute references to these inputs to avoid propagation.
|
||||
(substitute* (list (string-append lib "/pkgconfig/libarchive.pc")
|
||||
(string-append lib "/libarchive.la"))
|
||||
(("-lnettle")
|
||||
(string-append "-L" nettle "/lib -lnettle"))
|
||||
(("-lxml2")
|
||||
|
|
Loading…
Reference in a new issue