summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authortheraven <theraven@FreeBSD.org>2014-07-12 07:47:50 +0000
committertheraven <theraven@FreeBSD.org>2014-07-12 07:47:50 +0000
commit30f1a4905038de5ef5587ae35391a61111a0667a (patch)
tree142ff7c3abc5d3046f18816674c8b9ee0878de5b /usr.bin
parent5db854beb3fab3a2a4ec72377b2bb21e168b6af6 (diff)
downloadFreeBSD-src-30f1a4905038de5ef5587ae35391a61111a0667a.zip
FreeBSD-src-30f1a4905038de5ef5587ae35391a61111a0667a.tar.gz
Turn off exceptions and rtti when building the c++ version of users.
Neither is used in the program and this saves us 10KB (around 40%) in binary size.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/users/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/users/Makefile b/usr.bin/users/Makefile
index 29b5983..1bf0edf 100644
--- a/usr.bin/users/Makefile
+++ b/usr.bin/users/Makefile
@@ -3,5 +3,6 @@
WARNS= 3
PROG_CXX= users
+CXXFLAGS+= -fno-rtti -fno-exceptions
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud