depends: Add FreeBSD to hosts and builders
This commit is contained in:
@@ -39,6 +39,7 @@ build_vendor=$(word 2,$(subst -, ,$(build)))
|
||||
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:=$(strip $(build_os))
|
||||
ifeq ($(build_os),)
|
||||
build_os=$(full_build_os)
|
||||
@@ -49,6 +50,7 @@ host_vendor=$(word 2,$(subst -, ,$(canonical_host)))
|
||||
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 mingw32,$(full_host_os))
|
||||
host_os:=$(strip $(host_os))
|
||||
ifeq ($(host_os),)
|
||||
|
||||
4
depends/builders/freebsd.mk
Normal file
4
depends/builders/freebsd.mk
Normal file
@@ -0,0 +1,4 @@
|
||||
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_CXXFLAGS=$(freebsd_CFLAGS)
|
||||
|
||||
freebsd_release_CFLAGS=-O1
|
||||
freebsd_release_CXXFLAGS=$(freebsd_release_CFLAGS)
|
||||
|
||||
freebsd_debug_CFLAGS=-O1
|
||||
freebsd_debug_CXXFLAGS=$(freebsd_debug_CFLAGS)
|
||||
|
||||
freebsd_debug_CPPFLAGS=-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC
|
||||
|
||||
ifeq (86,$(findstring 86,$(build_arch)))
|
||||
i686_freebsd_CC=gcc -m32
|
||||
i686_freebsd_CXX=g++ -m32
|
||||
i686_freebsd_AR=ar
|
||||
i686_freebsd_RANLIB=ranlib
|
||||
i686_freebsd_NM=nm
|
||||
i686_freebsd_STRIP=strip
|
||||
|
||||
x86_64_freebsd_CC=gcc -m64
|
||||
x86_64_freebsd_CXX=g++ -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
|
||||
Reference in New Issue
Block a user