summary refs log tree commit diff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2021-12-20 20:28:21 +0100
committerRicardo Wurmus <rekado@elephly.net>2021-12-20 23:23:40 +0100
commit500d734b631cf90e328958f6240e0e9369381fa5 (patch)
tree692e8953dd53687d6645087d86c034367a849a5a
parentcbb7d81638d7ffc876d24efbaf9a87e33dbc0d59 (diff)
downloadguix-500d734b631cf90e328958f6240e0e9369381fa5.tar.gz
gnu: leveldb: Remove --no-rtti flag.
* gnu/packages/databases.scm (leveldb)[arguments]: Patch CMakeLists.txt in
'allow-RTTI phase.
-rw-r--r--gnu/packages/databases.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index da4c43d5dd..e81d4f0e74 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -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 _