2021-08-31 07:34:43 +02:00
|
|
|
freebsd_CFLAGS=-pipe -std=$(C_STANDARD)
|
2021-09-09 08:21:01 +02:00
|
|
|
freebsd_CXXFLAGS=-pipe -std=$(CXX_STANDARD)
|
2021-11-16 03:01:38 +01:00
|
|
|
|
|
|
|
ifneq ($(LTO),)
|
|
|
|
freebsd_CFLAGS += -flto
|
2021-08-31 07:34:43 +02:00
|
|
|
freebsd_CXXFLAGS += -flto
|
2021-11-16 03:01:38 +01:00
|
|
|
freebsd_LDFLAGS += -flto
|
|
|
|
endif
|
|
|
|
|
2022-02-14 17:33:42 +01:00
|
|
|
freebsd_release_CFLAGS=-O2
|
|
|
|
freebsd_release_CXXFLAGS=$(freebsd_release_CFLAGS)
|
2022-01-03 06:21:58 +01:00
|
|
|
|
2022-02-14 17:33:42 +01:00
|
|
|
freebsd_debug_CFLAGS=-O1
|
|
|
|
freebsd_debug_CXXFLAGS=$(freebsd_debug_CFLAGS)
|
2022-01-03 06:21:58 +01:00
|
|
|
|
|
|
|
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
|