gnu: leveldb: Remove --no-rtti flag.

* gnu/packages/databases.scm (leveldb)[arguments]: Patch CMakeLists.txt in
'allow-RTTI phase.
This commit is contained in:
Ricardo Wurmus 2021-12-20 20:28:21 +01:00
parent cbb7d81638
commit 500d734b63
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC

View File

@ -485,6 +485,12 @@ database later.")
"-DBENCHMARK_ENABLE_INSTALL=OFF")
#:phases
#~(modify-phases %standard-phases
;; Ceph uses leveldb and depends on RTTI.
(add-after 'unpack 'allow-RTTI
(lambda _
(substitute* "CMakeLists.txt"
(("set\\(CMAKE_CXX_FLAGS \"\\$\\{CMAKE_CXX_FLAGS\\} -fno-rtti\"\\)")
""))))
(add-after 'unpack 'unpack-third_party-sources
;; These are only for testing, so copying source is fine.
(lambda _