diff --git a/contrib/install_db4.sh b/contrib/install_db4.sh index e9130a21ded67..702b2cd372705 100755 --- a/contrib/install_db4.sh +++ b/contrib/install_db4.sh @@ -6,6 +6,8 @@ # Install libdb4.8 (Berkeley DB). export LC_ALL=C +export CFLAGS="-Wno-error=implicit-function-declaration" + set -e if [ -z "${1}" ]; then diff --git a/depends/packages/bdb.mk b/depends/packages/bdb.mk index 06cf974f75c18..af7f3d763615b 100644 --- a/depends/packages/bdb.mk +++ b/depends/packages/bdb.mk @@ -10,6 +10,7 @@ define $(package)_set_vars $(package)_config_opts=--disable-shared --enable-cxx --disable-replication --enable-option-checking $(package)_config_opts_mingw32=--enable-mingw $(package)_config_opts_linux=--with-pic +$(package)_cc+=-Wno-error=implicit-function-declaration $(package)_cxxflags=-std=c++11 $(package)_cppflags_mingw32=-DUNICODE -D_UNICODE endef