mconfig.FreeBSD 882 B

1234567891011121314151617181920212223242526272829303132333435
  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. CXXFLAGS=-std=c++11 -Os -Wall -fno-plt -fno-rtti
  10. CPPFLAGS=
  11. LDFLAGS_BASE=-lrt
  12. LDFLAGS=$(LDFLAGS_BASE)
  13. TEST_CXXFLAGS=$(CXXFLAGS) -fsanitize=address,undefined
  14. TEST_LDFLAGS_BASE=$(LDFLAGS_BASE)
  15. TEST_LDFLAGS=$(TEST_LDFLAGS_BASE)
  16. BUILD_SHUTDOWN=no
  17. # Notes:
  18. # -fno-rtti (optional) : Dinit does not require C++ Run-time Type Information
  19. # -fno-plt (optional) : Recommended optimisation
  20. # -fsanitize=address,undefined : Apply sanitizers (during unit tests)
  21. #
  22. # Old versions of FreeBSD had issues with -fno-plt/-fno-rtti.
  23. # Service defaults.
  24. DEFAULT_AUTO_RESTART=true
  25. DEFAULT_START_TIMEOUT=60
  26. DEFAULT_STOP_TIMEOUT=10