Author: jhb
Date: Tue Jul  3 16:45:49 2018
New Revision: 335897
URL: https://svnweb.freebsd.org/changeset/base/335897

Log:
  Strip __RCSID() and __SCCSID() strings by default when building libc.
  
  This is in preparation for changes to update the various ID strings in
  libc's source.  CSRG ID strings will use __SCCSID() and there are some
  existing uses of __RCSID() for NetBSD ID strings already.  These are
  generally under either an explicit #if 0 or an #ifdef LIBC_SCCS so are
  off by default and this change preserves that existing behavior.
  
  Differential Revision:        https://reviews.freebsd.org/D15830

Modified:
  head/lib/libc/Makefile

Modified: head/lib/libc/Makefile
==============================================================================
--- head/lib/libc/Makefile      Tue Jul  3 16:17:59 2018        (r335896)
+++ head/lib/libc/Makefile      Tue Jul  3 16:45:49 2018        (r335897)
@@ -25,8 +25,10 @@ LIBC_ARCH=${MACHINE_CPUARCH}
 # excluded as a space-saving measure.  To produce a library that does
 # not contain these strings, add -DSTRIP_FBSDID (see <sys/cdefs.h>) to CFLAGS
 # below.  Note: there are no IDs for syscall stubs whose sources are generated.
-# To include legacy CSRG sccsid strings, add -DLIBC_SCCS and -DSYSLIBC_SCCS
-# to CFLAGS below.  -DSYSLIBC_SCCS affects just the system call stubs.
+# To include legacy CSRG SCCS ID strings, remove -DNO__SCCSID from CFLAGS.
+# To include RCS ID strings from other BSD projects, remove -DNO__RCSID from 
CFLAGS.
+CFLAGS+=-DNO__SCCSID -DNO__RCSID
+
 LIB=c
 SHLIB_MAJOR= 7
 .if ${MK_SSP} != "no"
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to