Adjust compile/link options.
[oweals/dinit.git] / mconfig
1 # Installation path options.
2
3 SBINDIR=/sbin
4 MANDIR=/usr/share/man
5
6
7 # General build options. Uncomment the options appropriate for your system.
8
9 # Linux (GCC). Note with GCC 5.x/6.x you must use the old ABI, with GCC 7.x you must use
10 # the new ABI. See BUILD file for more information.
11 CXX=g++
12 CXXOPTS=-D_GLIBCXX_USE_CXX11_ABI=1 -std=c++11 -Os -Wall -fno-rtti -fno-plt -flto
13 LDFLAGS=-flto
14 BUILD_SHUTDOWN=yes
15 SANITIZEOPTS=-fsanitize=address,undefined
16
17 # OpenBSD, tested with GCC 4.9.3 / Clang++ 4/5 and gmake:
18 #CXX=clang++
19 #CXXOPTS=-std=c++11 -Os -Wall -fno-rtti
20 #LDFLAGS=
21 #BUILD_SHUTDOWN=no
22 #SANITIZEOPTS=
23 # (shutdown command not available for OpenBSD yet).
24
25 # FreeBSD: use clang++ by default, supports sanitizers, requires linking with -lrt
26 #CXX=clang++
27 #CXXOPTS=-std=c++11 -Os -Wall -fno-rtti
28 #LDFLAGS=-lrt
29 #BUILD_SHUTDOWN=no
30 #SANITIZEOPTS=-fsanitize=address,undefined
31
32 # MacOS: use Linux settings, but don't build shutdown:
33 #BUILD_SHUTDOWN=no