gnu: git-crypt: Fix build issues on OpenSSL 3.

* gnu/packages/version-control.scm (git-crypt)[arguments]: In 'build'
phase, set 'CXXFLAGS'.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Sergey Trofimov 2023-05-01 18:18:42 +02:00 committed by Ludovic Courtès
parent ecb2710353
commit 71a438dcba
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5

View File

@ -937,6 +937,10 @@ write native speed custom Git applications in any language with bindings.")
#t))
(replace 'build
(lambda _
;; Add flag to work around OpenSSL 3 incompatibility.
;; See <https://github.com/AGWA/git-crypt/issues/232>.
(setenv "CXXFLAGS" "-DOPENSSL_API_COMPAT=0x30000000L")
(invoke "make" "ENABLE_MAN=yes")))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)