aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRoel Janssen <roel@gnu.org>2020-08-19 18:04:06 +0200
committerRoel Janssen <roel@gnu.org>2020-08-19 18:08:00 +0200
commitd26bf5294860c0130166b51f0832ab1118198812 (patch)
treecc257cc71dfffa9cffffac8f195982543a7799b1 /gnu
parent2b5b7809b6e91f7e35cc5f082af815c0a4725d58 (diff)
downloadguix-d26bf5294860c0130166b51f0832ab1118198812.tar.gz
guix-d26bf5294860c0130166b51f0832ab1118198812.zip
gnu: virtuoso-use: Remove static libraries.
* gnu/packages/databases.scm (virtuoso-ose): Remove static libraries from the build output.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/databases.scm14
1 files changed, 13 insertions, 1 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index d3220c67d8..fe9978587c 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)