mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
merge bitcoin#23948: add FreeBSD support to depends
This commit is contained in:
parent
d121666341
commit
df50931ae2
@ -71,6 +71,7 @@ build_vendor=$(word 2,$(subst -, ,$(build)))
|
|||||||
full_build_os:=$(subst $(build_arch)-$(build_vendor)-,,$(build))
|
full_build_os:=$(subst $(build_arch)-$(build_vendor)-,,$(build))
|
||||||
build_os:=$(findstring linux,$(full_build_os))
|
build_os:=$(findstring linux,$(full_build_os))
|
||||||
build_os+=$(findstring darwin,$(full_build_os))
|
build_os+=$(findstring darwin,$(full_build_os))
|
||||||
|
build_os+=$(findstring freebsd,$(full_build_os))
|
||||||
build_os:=$(strip $(build_os))
|
build_os:=$(strip $(build_os))
|
||||||
ifeq ($(build_os),)
|
ifeq ($(build_os),)
|
||||||
build_os=$(full_build_os)
|
build_os=$(full_build_os)
|
||||||
@ -81,6 +82,7 @@ host_vendor=$(word 2,$(subst -, ,$(canonical_host)))
|
|||||||
full_host_os:=$(subst $(host_arch)-$(host_vendor)-,,$(canonical_host))
|
full_host_os:=$(subst $(host_arch)-$(host_vendor)-,,$(canonical_host))
|
||||||
host_os:=$(findstring linux,$(full_host_os))
|
host_os:=$(findstring linux,$(full_host_os))
|
||||||
host_os+=$(findstring darwin,$(full_host_os))
|
host_os+=$(findstring darwin,$(full_host_os))
|
||||||
|
host_os+=$(findstring freebsd,$(full_host_os))
|
||||||
host_os+=$(findstring mingw32,$(full_host_os))
|
host_os+=$(findstring mingw32,$(full_host_os))
|
||||||
|
|
||||||
ifeq (android,$(findstring android,$(full_host_os)))
|
ifeq (android,$(findstring android,$(full_host_os)))
|
||||||
|
5
depends/builders/freebsd.mk
Normal file
5
depends/builders/freebsd.mk
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
build_freebsd_CC=clang
|
||||||
|
build_freebsd_CXX=clang++
|
||||||
|
|
||||||
|
build_freebsd_SHA256SUM = shasum -a 256
|
||||||
|
build_freebsd_DOWNLOAD = curl --location --fail --connect-timeout $(DOWNLOAD_CONNECT_TIMEOUT) --retry $(DOWNLOAD_RETRIES) -o
|
31
depends/hosts/freebsd.mk
Normal file
31
depends/hosts/freebsd.mk
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
freebsd_CFLAGS=-pipe
|
||||||
|
freebsd_CFLAGS_CXXFLAGS=$(freebsd_CFLAGS)
|
||||||
|
|
||||||
|
freebsd_CFLAGS_release_CFLAGS=-O2
|
||||||
|
freebsd_CFLAGS_release_CXXFLAGS=$(freebsd_release_CFLAGS)
|
||||||
|
|
||||||
|
freebsd_CFLAGS_debug_CFLAGS=-O1
|
||||||
|
freebsd_CFLAGS_debug_CXXFLAGS=$(freebsd_debug_CFLAGS)
|
||||||
|
|
||||||
|
ifeq (86,$(findstring 86,$(build_arch)))
|
||||||
|
i686_freebsd_CC=clang -m32
|
||||||
|
i686_freebsd_CXX=clang++ -m32
|
||||||
|
i686_freebsd_AR=ar
|
||||||
|
i686_freebsd_RANLIB=ranlib
|
||||||
|
i686_freebsd_NM=nm
|
||||||
|
i686_freebsd_STRIP=strip
|
||||||
|
|
||||||
|
x86_64_freebsd_CC=clang -m64
|
||||||
|
x86_64_freebsd_CXX=clang++ -m64
|
||||||
|
x86_64_freebsd_AR=ar
|
||||||
|
x86_64_freebsd_RANLIB=ranlib
|
||||||
|
x86_64_freebsd_NM=nm
|
||||||
|
x86_64_freebsd_STRIP=strip
|
||||||
|
else
|
||||||
|
i686_freebsd_CC=$(default_host_CC) -m32
|
||||||
|
i686_freebsd_CXX=$(default_host_CXX) -m32
|
||||||
|
x86_64_freebsd_CC=$(default_host_CC) -m64
|
||||||
|
x86_64_freebsd_CXX=$(default_host_CXX) -m64
|
||||||
|
endif
|
||||||
|
|
||||||
|
freebsd_cmake_system=FreeBSD
|
@ -10,6 +10,7 @@ define $(package)_set_vars
|
|||||||
$(package)_config_opts=--disable-shared --enable-cxx --disable-replication --enable-option-checking
|
$(package)_config_opts=--disable-shared --enable-cxx --disable-replication --enable-option-checking
|
||||||
$(package)_config_opts_mingw32=--enable-mingw
|
$(package)_config_opts_mingw32=--enable-mingw
|
||||||
$(package)_config_opts_linux=--with-pic
|
$(package)_config_opts_linux=--with-pic
|
||||||
|
$(package)_config_opts_freebsd=--with-pic
|
||||||
$(package)_config_opts_android=--with-pic
|
$(package)_config_opts_android=--with-pic
|
||||||
$(package)_cflags+=-Wno-error=implicit-function-declaration
|
$(package)_cflags+=-Wno-error=implicit-function-declaration
|
||||||
$(package)_cxxflags=-std=c++17
|
$(package)_cxxflags=-std=c++17
|
||||||
|
@ -29,6 +29,7 @@ endif
|
|||||||
$(package)_config_libraries=filesystem,thread,test
|
$(package)_config_libraries=filesystem,thread,test
|
||||||
$(package)_cxxflags=-std=c++17 -fvisibility=hidden
|
$(package)_cxxflags=-std=c++17 -fvisibility=hidden
|
||||||
$(package)_cxxflags_linux=-fPIC
|
$(package)_cxxflags_linux=-fPIC
|
||||||
|
$(package)_cxxflags_freebsd=-fPIC
|
||||||
$(package)_cxxflags_android=-fPIC
|
$(package)_cxxflags_android=-fPIC
|
||||||
$(package)_cxxflags_x86_64=-fcf-protection=full
|
$(package)_cxxflags_x86_64=-fcf-protection=full
|
||||||
endef
|
endef
|
||||||
|
@ -12,6 +12,7 @@ define $(package)_set_vars
|
|||||||
$(package)_config_opts += --disable-dependency-tracking --enable-option-checking
|
$(package)_config_opts += --disable-dependency-tracking --enable-option-checking
|
||||||
$(package)_config_opts_release=--disable-debug-mode
|
$(package)_config_opts_release=--disable-debug-mode
|
||||||
$(package)_config_opts_linux=--with-pic
|
$(package)_config_opts_linux=--with-pic
|
||||||
|
$(package)_config_opts_freebsd=--with-pic
|
||||||
$(package)_config_opts_android=--with-pic
|
$(package)_config_opts_android=--with-pic
|
||||||
$(package)_cppflags_mingw32=-D_WIN32_WINNT=0x0601
|
$(package)_cppflags_mingw32=-D_WIN32_WINNT=0x0601
|
||||||
endef
|
endef
|
||||||
|
@ -7,6 +7,7 @@ $(package)_sha256_hash=5af07de982ba658fd91a03170c945f99c971f6955bc79df3266544373
|
|||||||
define $(package)_set_vars
|
define $(package)_set_vars
|
||||||
$(package)_config_opts=--disable-shared --disable-readline --disable-dynamic-extensions --enable-option-checking
|
$(package)_config_opts=--disable-shared --disable-readline --disable-dynamic-extensions --enable-option-checking
|
||||||
$(package)_config_opts_linux=--with-pic
|
$(package)_config_opts_linux=--with-pic
|
||||||
|
$(package)_config_opts_freebsd=--with-pic
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_preprocess_cmds
|
define $(package)_preprocess_cmds
|
||||||
|
@ -10,6 +10,7 @@ define $(package)_set_vars
|
|||||||
$(package)_config_opts += --disable-libunwind --disable-radix-tree --without-gcov --disable-dependency-tracking
|
$(package)_config_opts += --disable-libunwind --disable-radix-tree --without-gcov --disable-dependency-tracking
|
||||||
$(package)_config_opts += --disable-Werror --disable-drafts --enable-option-checking
|
$(package)_config_opts += --disable-Werror --disable-drafts --enable-option-checking
|
||||||
$(package)_config_opts_linux=--with-pic
|
$(package)_config_opts_linux=--with-pic
|
||||||
|
$(package)_config_opts_freebsd=--with-pic
|
||||||
$(package)_config_opts_android=--with-pic
|
$(package)_config_opts_android=--with-pic
|
||||||
$(package)_cxxflags=-std=c++17
|
$(package)_cxxflags=-std=c++17
|
||||||
endef
|
endef
|
||||||
|
Loading…
Reference in New Issue
Block a user