mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
cd33b69bfd
e037c4fe0914d8fa9149ce7532c0d70f738e79e9 depends: always configure with --with-pic (fanquake) Pull request description: We currently do this sporadically. Not only amongst packages, but across OS's, i.e sometimes it's done for BSDs/Android, and sometimes not. Configure with `--with-pic` globally instead. I think this generally makes more sense, and should not have any downsides. See related discussion in https://github.com/bitcoin/bitcoin/pull/28846#discussion_r1399123100. ACKs for top commit: hebasto: ACK e037c4fe0914d8fa9149ce7532c0d70f738e79e9. Tree-SHA512: efc743ff92f9f99f3ac16514e98363ad395c6f956cd4be7e785b5c573685baf7fcd68c51d6a705ee8761fc676eb045b7e61676595be0eb0f70f34e99174cddc0
36 lines
1.2 KiB
Makefile
36 lines
1.2 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)_cflags+=-Wno-error=implicit-function-declaration -Wno-error=format-security -Wno-error=implicit-int
|
|
$(package)_cxxflags+=-std=c++17
|
|
$(package)_cppflags_freebsd=-D_XOPEN_SOURCE=600 -D__BSD_VISIBLE=1
|
|
$(package)_cppflags_netbsd=-D_XOPEN_SOURCE=600
|
|
$(package)_cppflags_openbsd=-D_XOPEN_SOURCE=600
|
|
$(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
|