From b1ac1dbe1abe86f756fe0a0e21690a4a5349d649 Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Fri, 15 Jan 2016 19:26:16 +0000 Subject: [PATCH] Makefile improvements (fix clean target), and build with -fno-rtti for reduced binary size. --- mconfig | 6 +++--- src/Makefile | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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 -- 2.25.1