Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jul 2018 16:45:50 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335897 - head/lib/libc
Message-ID:  <201807031645.w63Gjoo5069108@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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"



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