Skip to content

Commit b46c6ec

Browse files
fanquakeryanofsky
andcommitted
bdb: disable Werror for format-security
This is causing build failures in some build environments, like NixOS. I don't think we are going to patch bdb at this point, and this warning has existed for as long as we've used bdb. Fixes #25211. Tested (in Docker) with: ```bash docker run -it nixos/nix nix-shell -p gitMinimal gcc12 libtool pkg-config curl gnumake patch autoconf automake git clone https://github.com/bitcoin/bitcoin make -C bitcoin/depends bdb ``` Co-authored-by: Ryan Ofsky <[email protected]>
1 parent ce3b756 commit b46c6ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

depends/packages/bdb.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ $(package)_config_opts_freebsd=--with-pic
1414
$(package)_config_opts_netbsd=--with-pic
1515
$(package)_config_opts_openbsd=--with-pic
1616
$(package)_config_opts_android=--with-pic
17-
$(package)_cflags+=-Wno-error=implicit-function-declaration
17+
$(package)_cflags+=-Wno-error=implicit-function-declaration -Wno-error=format-security
1818
$(package)_cppflags_mingw32=-DUNICODE -D_UNICODE
1919
endef
2020

0 commit comments

Comments
 (0)