mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
746ff12632
1ba49bcdc216162f513e74e371ee9f26418a390e build: pass --enable-option-checking to applicable packages (fanquake) bcff8e21b1bb360c3cf1e1d2e1a2a54ec7581720 build: only pass --disable-dependency-tracking to packages that understand it (fanquake) Pull request description: By blanket passing `--disable-dependency-tracking` to all depends packages we end up with warnings (i.e in `bdb` or `freetype`) like: ```bash configure: WARNING: unrecognized options: --disable-dependency-tracking ``` Instead, only pass it to packages that actually understand it. Related to https://github.com/bitcoin/bitcoin/issues/16354. More info on `--disable-dependency-tracking` available [here](https://www.gnu.org/software/automake/manual/html_node/Dependency-Tracking.html). This PR also adds `--enable-option-checking` as a configure option to all applicable packages. ACKs for top commit: laanwj: ACK 1ba49bcdc216162f513e74e371ee9f26418a390e theuni: ACK 1ba49bcdc216162f513e74e371ee9f26418a390e Tree-SHA512: 6d3143ad5f5d1abed5e0a0b2ffbb4323f21c7bf24b0b8df26fb1b3cd16cf5309bbb830aa5aaec99164d5bbe8e9c62b97aa3e97ee1ddc2c7612bf8ff88a63885e
35 lines
1.1 KiB
Makefile
35 lines
1.1 KiB
Makefile
package=bdb
|
|
$(package)_version=4.8.30
|
|
$(package)_download_path=https://download.oracle.com/berkeley-db
|
|
$(package)_file_name=db-$($(package)_version).NC.tar.gz
|
|
$(package)_sha256_hash=12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef
|
|
$(package)_build_subdir=build_unix
|
|
$(package)_patches=clang_cxx_11.patch
|
|
|
|
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)_config_opts_android=--with-pic
|
|
$(package)_cflags+=-Wno-error=implicit-function-declaration
|
|
$(package)_cxxflags=-std=c++17
|
|
$(package)_cppflags_mingw32=-DUNICODE -D_UNICODE
|
|
endef
|
|
|
|
define $(package)_preprocess_cmds
|
|
patch -p1 < $($(package)_patch_dir)/clang_cxx_11.patch && \
|
|
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub dist
|
|
endef
|
|
|
|
define $(package)_config_cmds
|
|
../dist/$($(package)_autoconf)
|
|
endef
|
|
|
|
define $(package)_build_cmds
|
|
$(MAKE) libdb_cxx-4.8.a libdb-4.8.a
|
|
endef
|
|
|
|
define $(package)_stage_cmds
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install_lib install_include
|
|
endef
|