Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jul 2014 07:47:51 +0000 (UTC)
From:      David Chisnall <theraven@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r268566 - head/usr.bin/users
Message-ID:  <201407120747.s6C7lpYE020200@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: theraven
Date: Sat Jul 12 07:47:50 2014
New Revision: 268566
URL: http://svnweb.freebsd.org/changeset/base/268566

Log:
  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.

Modified:
  head/usr.bin/users/Makefile

Modified: head/usr.bin/users/Makefile
==============================================================================
--- head/usr.bin/users/Makefile	Sat Jul 12 07:46:18 2014	(r268565)
+++ head/usr.bin/users/Makefile	Sat Jul 12 07:47:50 2014	(r268566)
@@ -3,5 +3,6 @@
 
 WARNS=		3
 PROG_CXX=	users
+CXXFLAGS+=	-fno-rtti -fno-exceptions
 
 .include <bsd.prog.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407120747.s6C7lpYE020200>