mconfig.FreeBSD 786 B

123456789101112131415161718192021222324252627
  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=-lrt
  12. TEST_CXXFLAGS=$(CXXFLAGS) -fsanitize=address,undefined
  13. TEST_LDFLAGS=$(LDFLAGS) $(TEST_CXXFLAGS)
  14. BUILD_SHUTDOWN=no
  15. # Notes:
  16. # -fno-rtti (optional) : Dinit does not require C++ Run-time Type Information
  17. # -fno-plt (optional) : Recommended optimisation
  18. # -flto (optional) : Perform link-time optimisation
  19. # -fsanitize=address,undefined : Apply sanitizers (during unit tests)
  20. #
  21. # Old versions of FreeBSD had issues with -fno-plt/-fno-rtti.