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>
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to