Fix mistakes in cptest asserts
[oweals/dinit.git] / configs / mconfig.FreeBSD
1 # Installation path options.
2
3 SBINDIR=/sbin
4 MANDIR=/usr/share/man
5 SYSCONTROLSOCKET=/dev/dinitctl
6
7
8 # General build options.
9
10 # FreeBSD: use clang++ by default, supports sanitizers, requires linking with -lrt
11 # Cannot use LTO with default linker.
12 CXX=clang++
13 CXXOPTS=-std=c++11 -Os -Wall -fno-plt -fno-rtti
14 LDFLAGS=-lrt
15 BUILD_SHUTDOWN=no
16 SANITIZEOPTS=-fsanitize=address,undefined
17
18 # Notes:
19 #   -fno-rtti (optional) : Dinit does not require C++ Run-time Type Information
20 #   -fno-plt  (optional) : Recommended optimisation
21 #   -flto     (optional) : Perform link-time optimisation
22 #   -fsanitize=address,undefined :  Apply sanitizers (during unit tests)
23 #
24 # Old versions of FreeBSD had issues with -fno-plt/-fno-rtti.