mconfig.Linux 788 B

1234567891011121314151617181920212223
  1. # Installation path options.
  2. SBINDIR=/sbin
  3. MANDIR=/usr/share/man
  4. SYSCONTROLSOCKET=/dev/dinitctl
  5. # General build options.
  6. # Linux (GCC). Note with GCC 5.x/6.x you must use the old ABI, with GCC 7.x you must use
  7. # the new ABI. See BUILD.txt file for more information.
  8. CXX=g++
  9. CXXOPTS=-D_GLIBCXX_USE_CXX11_ABI=1 -std=c++11 -Os -Wall -fno-rtti -fno-plt -flto
  10. LDFLAGS=-flto -Os
  11. BUILD_SHUTDOWN=yes
  12. SANITIZEOPTS=-fsanitize=address,undefined
  13. # Notes:
  14. # -D_GLIBCXX_USE_CXX11_ABI=1 : force use of new ABI, see above / BUILD.txt
  15. # -fno-rtti (optional) : Dinit does not require C++ Run-time Type Information
  16. # -fno-plt (optional) : Recommended optimisation
  17. # -flto (optional) : Perform link-time optimisation
  18. # -fsanitize=address,undefined : Apply sanitizers (during unit tests)