guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: virtuoso-use: Remove static libraries.


From: guix-commits
Subject: branch master updated: gnu: virtuoso-use: Remove static libraries.
Date: Wed, 19 Aug 2020 12:08:28 -0400

This is an automated email from the git hooks/post-receive script.

roelj pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new d26bf52  gnu: virtuoso-use: Remove static libraries.
d26bf52 is described below

commit d26bf5294860c0130166b51f0832ab1118198812
Author: Roel Janssen <roel@gnu.org>
AuthorDate: Wed Aug 19 18:04:06 2020 +0200

    gnu: virtuoso-use: Remove static libraries.
    
    * gnu/packages/databases.scm (virtuoso-ose): Remove static libraries from
      the build output.
---
 gnu/packages/databases.scm | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index d3220c6..fe99785 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -2549,7 +2549,19 @@ implementation for Python.")
        ;; TODO: Removing the libsrc/zlib source directory breaks the build.
        ;; This indicates that the internal zlib code may still be used.
        #:configure-flags '("--without-internal-zlib"
-                           "--with-readline")))
+                           "--with-readline"
+                           "--enable-static=no")
+       #:phases
+       (modify-phases %standard-phases
+         ;; Even with "--enable-static=no", "libvirtuoso-t.a" is left in
+         ;; the build output.  The following phase removes it.
+         (add-after 'install 'remove-static-libs
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
+               (for-each (lambda (file)
+                           (delete-file (string-append lib "/" file)))
+                         '("libvirtuoso-t.a"
+                           "libvirtuoso-t.la"))))))))
     (inputs
      `(("openssl" ,openssl-1.0)
        ("net-tools" ,net-tools)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]