aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorVivien Kraus <vivien@planete-kraus.eu>2023-09-16 14:25:58 +0200
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2023-09-23 01:44:43 +0200
commite3dcaa19ce9bfa6b1e95162c60895d328b7afa2c (patch)
treeb21be2f5e72566c78c952c70d175e080b617da6a /gnu/packages
parent8c28401c6d0e8ea69edef80a82e2af31abab93e8 (diff)
downloadguix-e3dcaa19ce9bfa6b1e95162c60895d328b7afa2c.tar.gz
guix-e3dcaa19ce9bfa6b1e95162c60895d328b7afa2c.zip
gnu: pcre2: Install static libraries.
* gnu/packages/pcre.scm (pcre2)[#:configure-flags]: Remove "--disable-static". [#:phases]: Copy ‘move-static-libs’ from pcre. [outputs]: Add “static”. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/pcre.scm16
1 files changed, 13 insertions, 3 deletions
diff --git a/gnu/packages/pcre.scm b/gnu/packages/pcre.scm
index ee48ad0e2b..c7471169d9 100644
--- a/gnu/packages/pcre.scm
+++ b/gnu/packages/pcre.scm
@@ -102,6 +102,7 @@ POSIX regular expression API.")
(base32
"0s4x2l6g0sb9piwkr3sxqwdswz2g6bk1hhwngv0kv4w38wybir0l"))))
(build-system gnu-build-system)
+ (outputs '("out" "static"))
(inputs (list bzip2 readline zlib))
(arguments
(list #:configure-flags
@@ -114,14 +115,23 @@ POSIX regular expression API.")
;; riscv64-linux is an unsupported architecture.
#$@(if (target-riscv64?)
#~()
- #~("--enable-jit"))
- "--disable-static")
+ #~("--enable-jit")))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-paths
(lambda _
(substitute* "RunGrepTest"
- (("/bin/echo") (which "echo"))))))))
+ (("/bin/echo") (which "echo")))))
+ (add-after 'install 'move-static-libs
+ (lambda _
+ (let ((source (string-append #$output "/lib"))
+ (static (string-append #$output:static "/lib")))
+ (mkdir-p static)
+ (for-each (lambda (lib)
+ (link lib (string-append static "/"
+ (basename lib)))
+ (delete-file lib))
+ (find-files source "\\.a$"))))))))
(synopsis "Perl Compatible Regular Expressions")
(description
"The PCRE library is a set of functions that implement regular expression