mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-09 11:27:28 -03:00
build: add NetBSD support to depends
This commit is contained in:
parent
3ce40e64d4
commit
7b06ffce9c
7 changed files with 39 additions and 0 deletions
|
@ -77,6 +77,7 @@ full_build_os:=$(subst $(build_arch)-$(build_vendor)-,,$(build))
|
|||
build_os:=$(findstring linux,$(full_build_os))
|
||||
build_os+=$(findstring darwin,$(full_build_os))
|
||||
build_os+=$(findstring freebsd,$(full_build_os))
|
||||
build_os+=$(findstring netbsd,$(full_build_os))
|
||||
build_os+=$(findstring openbsd,$(full_build_os))
|
||||
build_os:=$(strip $(build_os))
|
||||
ifeq ($(build_os),)
|
||||
|
@ -89,6 +90,7 @@ full_host_os:=$(subst $(host_arch)-$(host_vendor)-,,$(canonical_host))
|
|||
host_os:=$(findstring linux,$(full_host_os))
|
||||
host_os+=$(findstring darwin,$(full_host_os))
|
||||
host_os+=$(findstring freebsd,$(full_host_os))
|
||||
host_os+=$(findstring netbsd,$(full_host_os))
|
||||
host_os+=$(findstring openbsd,$(full_host_os))
|
||||
host_os+=$(findstring mingw32,$(full_host_os))
|
||||
|
||||
|
|
2
depends/builders/netbsd.mk
Normal file
2
depends/builders/netbsd.mk
Normal file
|
@ -0,0 +1,2 @@
|
|||
build_netbsd_SHA256SUM = shasum -a 256
|
||||
build_netbsd_DOWNLOAD = curl --location --fail --connect-timeout $(DOWNLOAD_CONNECT_TIMEOUT) --retry $(DOWNLOAD_RETRIES) -o
|
31
depends/hosts/netbsd.mk
Normal file
31
depends/hosts/netbsd.mk
Normal file
|
@ -0,0 +1,31 @@
|
|||
netbsd_CFLAGS=-pipe
|
||||
netbsd_CXXFLAGS=$(netbsd_CFLAGS)
|
||||
|
||||
netbsd_release_CFLAGS=-O2
|
||||
netbsd_release_CXXFLAGS=$(netbsd_release_CFLAGS)
|
||||
|
||||
netbsd_debug_CFLAGS=-O1
|
||||
netbsd_debug_CXXFLAGS=$(netbsd_debug_CFLAGS)
|
||||
|
||||
ifeq (86,$(findstring 86,$(build_arch)))
|
||||
i686_netbsd_CC=gcc -m32
|
||||
i686_netbsd_CXX=g++ -m32
|
||||
i686_netbsd_AR=ar
|
||||
i686_netbsd_RANLIB=ranlib
|
||||
i686_netbsd_NM=nm
|
||||
i686_netbsd_STRIP=strip
|
||||
|
||||
x86_64_netbsd_CC=gcc -m64
|
||||
x86_64_netbsd_CXX=g++ -m64
|
||||
x86_64_netbsd_AR=ar
|
||||
x86_64_netbsd_RANLIB=ranlib
|
||||
x86_64_netbsd_NM=nm
|
||||
x86_64_netbsd_STRIP=strip
|
||||
else
|
||||
i686_netbsd_CC=$(default_host_CC) -m32
|
||||
i686_netbsd_CXX=$(default_host_CXX) -m32
|
||||
x86_64_netbsd_CC=$(default_host_CC) -m64
|
||||
x86_64_netbsd_CXX=$(default_host_CXX) -m64
|
||||
endif
|
||||
|
||||
netbsd_cmake_system=NetBSD
|
|
@ -11,6 +11,7 @@ $(package)_config_opts=--disable-shared --enable-cxx --disable-replication --ena
|
|||
$(package)_config_opts_mingw32=--enable-mingw
|
||||
$(package)_config_opts_linux=--with-pic
|
||||
$(package)_config_opts_freebsd=--with-pic
|
||||
$(package)_config_opts_netbsd=--with-pic
|
||||
$(package)_config_opts_openbsd=--with-pic
|
||||
$(package)_config_opts_android=--with-pic
|
||||
$(package)_cflags+=-Wno-error=implicit-function-declaration
|
||||
|
|
|
@ -13,6 +13,7 @@ define $(package)_set_vars
|
|||
$(package)_config_opts_release=--disable-debug-mode
|
||||
$(package)_config_opts_linux=--with-pic
|
||||
$(package)_config_opts_freebsd=--with-pic
|
||||
$(package)_config_opts_netbsd=--with-pic
|
||||
$(package)_config_opts_openbsd=--with-pic
|
||||
$(package)_config_opts_android=--with-pic
|
||||
$(package)_cppflags_mingw32=-D_WIN32_WINNT=0x0601
|
||||
|
|
|
@ -8,6 +8,7 @@ define $(package)_set_vars
|
|||
$(package)_config_opts=--disable-shared --disable-readline --disable-dynamic-extensions --enable-option-checking
|
||||
$(package)_config_opts_linux=--with-pic
|
||||
$(package)_config_opts_freebsd=--with-pic
|
||||
$(package)_config_opts_netbsd=--with-pic
|
||||
$(package)_config_opts_openbsd=--with-pic
|
||||
endef
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ define $(package)_set_vars
|
|||
$(package)_config_opts += --disable-Werror --disable-drafts --enable-option-checking
|
||||
$(package)_config_opts_linux=--with-pic
|
||||
$(package)_config_opts_freebsd=--with-pic
|
||||
$(package)_config_opts_netbsd=--with-pic
|
||||
$(package)_config_opts_openbsd=--with-pic
|
||||
$(package)_config_opts_android=--with-pic
|
||||
$(package)_cxxflags+=-std=c++17
|
||||
|
|
Loading…
Reference in a new issue