diff options
author | fanquake <fanquake@gmail.com> | 2022-01-03 18:20:08 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-02-14 16:52:23 +0000 |
commit | 7b06ffce9c50110b475c722918c55a14402346a5 (patch) | |
tree | d90e13c9e3425452eafeb2ffab1ad397601c8c7e /depends/hosts | |
parent | 3ce40e64d4ae9419658555fd1fb250b93f52684a (diff) |
build: add NetBSD support to depends
Diffstat (limited to 'depends/hosts')
-rw-r--r-- | depends/hosts/netbsd.mk | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/depends/hosts/netbsd.mk b/depends/hosts/netbsd.mk new file mode 100644 index 0000000000..b3e4545a64 --- /dev/null +++ b/depends/hosts/netbsd.mk @@ -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 |