2021-08-31 07:34:43 +02:00
|
|
|
netbsd_CFLAGS=-pipe -std=$(C_STANDARD)
|
2021-09-09 08:21:01 +02:00
|
|
|
netbsd_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
|
2021-11-16 03:01:38 +01:00
|
|
|
|
|
|
|
ifneq ($(LTO),)
|
2022-06-16 11:19:49 +02:00
|
|
|
netbsd_AR = $(host_toolchain)gcc-ar
|
|
|
|
netbsd_NM = $(host_toolchain)gcc-nm
|
|
|
|
netbsd_RANLIB = $(host_toolchain)gcc-ranlib
|
2021-11-16 03:01:38 +01:00
|
|
|
endif
|
|
|
|
|
2022-01-03 11:20:08 +01:00
|
|
|
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
|