summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2019-07-31 14:36:26 +0200
committerMarius Bakke <mbakke@fastmail.com>2019-07-31 14:41:36 +0200
commit1664e2ab39b3d9f6252ce8b532468c45439aa01d (patch)
treebe0f93b3f5928f6c33a202748841a5d8b838987e
parentf8071e9b3be91bdc0ceef7cbc8e93f58738da194 (diff)
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.
-rw-r--r--gnu/packages/backup.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm
index 1e9298f68c..a92c8c9aca 100644
--- a/gnu/packages/backup.scm
+++ b/gnu/packages/backup.scm
@@ -258,7 +258,9 @@ backups (called chunks) to allow easy burning to CD/DVD.")
(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")