[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/07: gnu: rocksdb: Don't build static library.
From: |
Marius Bakke |
Subject: |
06/07: gnu: rocksdb: Don't build static library. |
Date: |
Sat, 15 Apr 2017 12:52:41 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit f91c677c03479c26a9c9ee5f2f44d8dc77bec262
Author: Marius Bakke <address@hidden>
Date: Fri Apr 14 21:03:31 2017 +0200
gnu: rocksdb: Don't build static library.
* gnu/packages/databases.scm (rocksdb)[arguments]<#:phases>: Add new
Makefile
substitution. Remove 'delete-static-library' phase. Adjust
'build-release-libraries' phase to match.
<#:make-flags>: Remove redundant flag.
---
gnu/packages/databases.scm | 35 ++++++++++++-----------------------
1 file changed, 12 insertions(+), 23 deletions(-)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 4dad473..cc2f8a2 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -576,9 +576,6 @@ types are supported, as is encryption.")
(build-system gnu-build-system)
(arguments
'(#:make-flags (list "CC=gcc"
- ;; Make the resulting library position-independent
so the
- ;; static version can be included in shared objects.
- "EXTRA_CXXFLAGS=-fPIC"
(string-append "INSTALL_PATH="
(assoc-ref %outputs "out")))
#:phases
@@ -587,6 +584,9 @@ types are supported, as is encryption.")
(lambda _
(substitute* "Makefile"
(("build_tools/gnu_parallel") "parallel")
+ ;; Don't depend on the static library when installing.
+ (("install: install-static")
+ "install: install-shared")
(("#!/bin/sh") (string-append "#!" (which "sh"))))
#t))
(delete 'configure)
@@ -600,26 +600,15 @@ types are supported, as is encryption.")
(("^[[:blank:]]+env_test[[:blank:]]+\\\\") "\\")
(("^[[:blank:]]+persistent_cache_test[[:blank:]]+\\\\") "\\"))
#t))
- (add-after
- 'check 'build-release-libraries
- ;; The 'check' target depends on the default target which is compiled
- ;; with debug symbols. The 'install' target depends on shared and
- ;; static release targets so we build them here for clarity.
- ;; TODO: Add debug output.
- (lambda* (#:key (make-flags '()) #:allow-other-keys)
- ;; Prevent the build from adding machine-specific optimizations.
- ;; This does not work if passed as a make flag...
- (setenv "PORTABLE" "1")
- (and (zero? (apply system* "make" "static_lib" make-flags))
- (zero? (apply system* "make" "shared_lib" make-flags)))))
- (add-after 'install 'delete-static-library
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (lib (string-append out "/lib")))
- (for-each (lambda (file)
- (delete-file file))
- (find-files lib "\\.l?a$"))
- #t))))))
+ (add-after 'check 'build-release-libraries
+ ;; The default build target is a debug build for tests. The
+ ;; install target depends on "shared_lib" and "static_lib"
+ ;; targets for release builds so we build them here for clarity.
+ ;; TODO: Add debug output.
+ (lambda* (#:key (make-flags '()) #:allow-other-keys)
+ ;; Prevent the build from adding machine-specific optimizations.
+ (setenv "PORTABLE" "1")
+ (zero? (apply system* "make" "shared_lib" make-flags)))))))
(native-inputs
`(("parallel" ,parallel)
("perl" ,perl)
- branch master updated (2e58e05 -> 8c326cf), Marius Bakke, 2017/04/15
- 02/07: gnu: xf86-video-intel: Update to 2.99.917-5-b57abe2., Marius Bakke, 2017/04/15
- 06/07: gnu: rocksdb: Don't build static library.,
Marius Bakke <=
- 05/07: gnu: rocksdb: Disable failing test., Marius Bakke, 2017/04/15
- 01/07: gnu: kodi: Update to 18.0_alpha-2-478d306., Marius Bakke, 2017/04/15
- 04/07: gnu: bc: Update to 1.07.1., Marius Bakke, 2017/04/15
- 07/07: gnu: ceph: Disable failing test., Marius Bakke, 2017/04/15
- 03/07: gnu: mupdf: Update to 1.11., Marius Bakke, 2017/04/15