From: Davin McCall Date: Fri, 15 Jan 2016 19:26:16 +0000 (+0000) Subject: Makefile improvements (fix clean target), and build with -fno-rtti X-Git-Tag: v0.01~23 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b1ac1dbe1abe86f756fe0a0e21690a4a5349d649;p=oweals%2Fdinit.git Makefile improvements (fix clean target), and build with -fno-rtti for reduced binary size. --- diff --git a/mconfig b/mconfig index 780aace..8cf17f2 100644 --- a/mconfig +++ b/mconfig @@ -1,14 +1,14 @@ # LLVM/clang++ with libc++ on Linux #CXX=clang++ -#CXXOPTS=-stdlib=libc++ -std=gnu++11 -Os -Wall +#CXXOPTS=-stdlib=libc++ -std=gnu++11 -Os -Wall -fno-rtti #EXTRA_LIBS=-lc++abi # GCC. Note with GCC 5,5.1,5.2 the new C++11 ABI is buggy. CXX=g++ -CXXOPTS=-D_GLIBCXX_USE_CXX11_ABI=0 -std=gnu++11 -Os -Wall +CXXOPTS=-D_GLIBCXX_USE_CXX11_ABI=0 -std=gnu++11 -Os -Wall -fno-rtti EXTRA_LIBS= # OpenBSD, tested with GCC 4.9.3 and gmake: #CXX=eg++ -#CXXOPTS=-D_GLIBCXX_USE_CXX11_ABI=0 -std=gnu++11 -Os -Wall +#CXXOPTS=-D_GLIBCXX_USE_CXX11_ABI=0 -std=gnu++11 -Os -Wall -fno-rtti #EXTRA_LIBS= diff --git a/src/Makefile b/src/Makefile index 13da888..25216ea 100644 --- a/src/Makefile +++ b/src/Makefile @@ -28,5 +28,5 @@ $(objects): %.o: %.cc service.h dinit-log.h control.h control-cmds.h cpbuffer.h #install.man: clean: - rm *.o - rm dinit + rm -f *.o + rm -f dinit dinitctl shutdown