mconfig.FreeBSD 720 B

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