mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-01 07:16:39 +01:00
gnu: python-dm-tree: Use static abseil-cpp.
* gnu/packages/python-xyz.scm (python-dm-tree)[inputs]: Replace abseil-cpp with static-abseil-cpp. [arguments]: Reference static libraries. Change-Id: I11b58ad907a3e59b98c28d6c2f6fb7bcc15be742
This commit is contained in:
parent
6797aac408
commit
f330920a14
1 changed files with 10 additions and 8 deletions
|
@ -5851,7 +5851,10 @@ (define-public python-dm-tree
|
|||
(sha256
|
||||
(base32 "0c4l9gpaqd7j34qwnpjibv53j9sm0nyl0wcy8dvh76772jxspjhg"))))
|
||||
(build-system pyproject-build-system)
|
||||
(inputs (list pybind11 abseil-cpp python))
|
||||
;; We link the static abseil libraries here to avoid problems in
|
||||
;; downstream libraries using potentially different variants of
|
||||
;; abseil-cpp. This is also what's done in the upstream CMake build.
|
||||
(inputs (list pybind11 static-abseil-cpp python))
|
||||
(propagated-inputs (list python-wheel
|
||||
python-absl-py
|
||||
python-attrs
|
||||
|
@ -5894,13 +5897,12 @@ (define-public python-dm-tree
|
|||
"build/temp/tree/tree.o"
|
||||
"-Wl,--whole-archive"
|
||||
"-L" (string-append python "/lib")
|
||||
"-L" (string-append abseil-cpp "/lib")
|
||||
"-l" "absl_int128"
|
||||
"-l" "absl_raw_hash_set"
|
||||
"-l" "absl_raw_logging_internal"
|
||||
"-l" "absl_strings"
|
||||
"-l" "absl_strings_internal"
|
||||
"-l" "absl_throw_delegate"
|
||||
(string-append abseil-cpp "/lib/libabsl_int128.a")
|
||||
(string-append abseil-cpp "/lib/libabsl_raw_hash_set.a")
|
||||
(string-append abseil-cpp "/lib/libabsl_raw_logging_internal.a")
|
||||
(string-append abseil-cpp "/lib/libabsl_strings.a")
|
||||
(string-append abseil-cpp "/lib/libabsl_strings_internal.a")
|
||||
(string-append abseil-cpp "/lib/libabsl_throw_delegate.a")
|
||||
"-Wl,--no-whole-archive"
|
||||
"-o" "build/lib/tree/_tree.so")))))))
|
||||
(home-page "https://github.com/deepmind/tree")
|
||||
|
|
Loading…
Reference in a new issue