File avoid-cmake-messing-with-bdb-cflags.patch of Package gridcoin
From: Matthias Bach <marix@marix.org>
Date: Wed, 19 Feb 2025 18:49:06 +0100
Subject: [PATCH] Avoid CMake messing up Cflags for BDB configure
Upstream: never
---
src/bdb53/CMakeLists.txt | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/src/bdb53/CMakeLists.txt b/src/bdb53/CMakeLists.txt
index 0f77bf8ea..024d80c25 100644
--- a/src/bdb53/CMakeLists.txt
+++ b/src/bdb53/CMakeLists.txt
@@ -29,16 +29,6 @@ if(WIN32)
--srcdir "${relative_dist_dir}"
)
endif()
-if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
- list(APPEND BDB_FLAGS
- CFLAGS=-Wno-implicit-function-declaration
- )
-endif()
-if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
- list(APPEND BDB_FLAGS
- CFLAGS=-Wno-error=implicit-int
- )
-endif()
# Make flags
# ==========
--
2.43.0