mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-14 23:20:29 -05:00
gnu: Add static-abseil-cpp.
* gnu/packages/cpp.scm (static-abseil-cpp): New variable. (make-static-abseil-cpp): New procedure. Change-Id: I0b0b17b31461baf1189d7c818a82c99baad253c1
This commit is contained in:
parent
5746d043a6
commit
6797aac408
1 changed files with 13 additions and 0 deletions
|
@ -1254,12 +1254,25 @@ (define (abseil-cpp-for-c++-standard version)
|
|||
(number->string version))
|
||||
#$flags))))))))
|
||||
|
||||
(define (make-static-abseil-cpp version)
|
||||
(let ((base abseil-cpp))
|
||||
(hidden-package
|
||||
(package/inherit base
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments base)
|
||||
((#:configure-flags flags)
|
||||
#~(cons* "-DCMAKE_POSITION_INDEPENDENT_CODE=ON"
|
||||
(delete "-DBUILD_SHARED_LIBS=ON" #$flags)))))))))
|
||||
|
||||
(define-public abseil-cpp-cxxstd17
|
||||
(abseil-cpp-for-c++-standard 17)) ;XXX: the default with GCC 11?
|
||||
|
||||
(define-public abseil-cpp-cxxstd11
|
||||
(abseil-cpp-for-c++-standard 11))
|
||||
|
||||
(define-public static-abseil-cpp
|
||||
(make-static-abseil-cpp abseil-cpp))
|
||||
|
||||
(define-public pegtl
|
||||
(package
|
||||
(name "pegtl")
|
||||
|
|
Loading…
Reference in a new issue