1 # Installation path options.
5 SYSCONTROLSOCKET=/dev/dinitctl
8 # General build options.
10 # FreeBSD: use clang++ by default, supports sanitizers, requires linking with -lrt
11 # Cannot use LTO with default linker.
13 CXXOPTS=-std=c++11 -Os -Wall -fno-plt -fno-rtti
16 SANITIZEOPTS=-fsanitize=address,undefined
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)
24 # Old versions of FreeBSD had issues with -fno-plt/-fno-rtti.