Bump version to 0.5.0.
[oweals/dinit.git] / mconfig
1 # Installation path options.
2
3 SBINDIR=/sbin
4 MANDIR=/usr/share/man
5 SYSCONTROLSOCKET=/dev/dinitctl
6
7
8 # General build options. Uncomment the options appropriate for your system.
9
10 # Linux (GCC). Note with GCC 5.x/6.x you must use the old ABI, with GCC 7.x you must use
11 # the new ABI. See BUILD file for more information.
12 CXX=g++
13 CXXOPTS=-D_GLIBCXX_USE_CXX11_ABI=1 -std=c++11 -Os -Wall -fno-rtti -fno-plt -flto
14 LDFLAGS=-flto
15 BUILD_SHUTDOWN=yes
16 SANITIZEOPTS=-fsanitize=address,undefined
17
18 # OpenBSD, tested with GCC 4.9.3 / Clang++ 4/5 and gmake:
19 #CXX=clang++
20 #CXXOPTS=-std=c++11 -Os -Wall -fno-rtti
21 #LDFLAGS=
22 #BUILD_SHUTDOWN=no
23 #SANITIZEOPTS=
24 # (shutdown command not available for OpenBSD yet).
25
26 # FreeBSD: use clang++ by default, supports sanitizers, requires linking with -lrt
27 # Cannot use -fno-rtti: apparently prevents exception handling from working properly.
28 #CXX=clang++
29 #CXXOPTS=-std=c++11 -Os -Wall
30 #LDFLAGS=-lrt
31 #BUILD_SHUTDOWN=no
32 #SANITIZEOPTS=-fsanitize=address,undefined
33
34 # MacOS: use g++ (which may alias clang++):
35 # Cannot use -fno-rtti: apparently prevents exception handling from working properly.
36 #CXX=g++
37 #CXXOPTS=-std=c++11 -Os -Wall -flto
38 #LDFLAGS=-flto
39 #BUILD_SHUTDOWN=no
40 #SANITIZEOPTS=-fsanitize=address,undefined