Implement a timeout (of 5 seconds) for log to flush on shutdown.
[oweals/dinit.git] / mconfig
diff --git a/mconfig b/mconfig
index b9a65e24fd757ecc068a58f8c2fa8504714c864c..68a0b5868cb63adbc6ec4fab3730a136d84f6782 100644 (file)
--- a/mconfig
+++ b/mconfig
@@ -1,18 +1,33 @@
+# Installation path options.
+
+SBINDIR=/sbin
+MANDIR=/usr/share/man
+
+
+# General build options. Uncomment the options appropriate for your system.
+
 # Linux (GCC). Note with GCC 5.x/6.x you must use the old ABI, with GCC 7.x you must use
 # the new ABI. See BUILD file for more information.
 CXX=g++
-CXXOPTS=-D_GLIBCXX_USE_CXX11_ABI=1 -std=gnu++11 -Os -Wall -Wno-invalid-offsetof -fno-rtti
-EXTRA_LIBS=
+CXXOPTS=-D_GLIBCXX_USE_CXX11_ABI=1 -std=c++11 -Os -Wall -fno-rtti -fno-plt -flto
+LDFLAGS=-flto
 BUILD_SHUTDOWN=yes
 SANITIZEOPTS=-fsanitize=address,undefined
 
-# OpenBSD, tested with GCC 4.9.3 and gmake:
+# OpenBSD, tested with GCC 4.9.3 / Clang++ 4/5 and gmake:
 #CXX=clang++
-#CXXOPTS=-std=gnu++11 -Os -Wall -fno-rtti
-#EXTRA_LIBS=
+#CXXOPTS=-std=c++11 -Os -Wall -fno-rtti
+#LDFLAGS=
 #BUILD_SHUTDOWN=no
 #SANITIZEOPTS=
 # (shutdown command not available for OpenBSD yet).
 
+# FreeBSD: use clang++ by default, supports sanitizers, requires linking with -lrt
+#CXX=clang++
+#CXXOPTS=-std=c++11 -Os -Wall -fno-rtti
+#LDFLAGS=-lrt
+#BUILD_SHUTDOWN=no
+#SANITIZEOPTS=-fsanitize=address,undefined
+
 # MacOS: use Linux settings, but don't build shutdown:
 #BUILD_SHUTDOWN=no