2
0

mconfig.FreeBSD 957 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Default build configuration for FreeBSD.
  2. # Installation path options.
  3. SBINDIR=/sbin
  4. MANDIR=/usr/share/man
  5. SYSCONTROLSOCKET=/var/run/dinitctl
  6. # General build options.
  7. # FreeBSD: use clang++ by default, supports sanitizers, requires linking with -lrt
  8. # Cannot use LTO with default linker.
  9. CXX=clang++
  10. CXXFLAGS=-std=c++11 -Os -Wall -fno-plt -fno-rtti
  11. CPPFLAGS=
  12. LDFLAGS_BASE=-lrt
  13. LDFLAGS=$(LDFLAGS_BASE)
  14. TEST_CXXFLAGS=$(CXXFLAGS) -fsanitize=address,undefined
  15. TEST_LDFLAGS_BASE=$(LDFLAGS_BASE) -fsanitize=address,undefined
  16. TEST_LDFLAGS=$(TEST_LDFLAGS_BASE)
  17. BUILD_SHUTDOWN=no
  18. # Notes:
  19. # -fno-rtti (optional) : Dinit does not require C++ Run-time Type Information
  20. # -fno-plt (optional) : Recommended optimisation
  21. # -fsanitize=address,undefined : Apply sanitizers (during unit tests)
  22. #
  23. # Old versions of FreeBSD had issues with -fno-plt/-fno-rtti.
  24. # Service defaults.
  25. DEFAULT_AUTO_RESTART=ALWAYS
  26. DEFAULT_START_TIMEOUT=60
  27. DEFAULT_STOP_TIMEOUT=10