aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2021-12-20 21:30:09 +0000
committerEd Maste <emaste@FreeBSD.org>2021-12-21 18:34:42 +0000
commitcb2d1350154aab1d649ca70d45ebc7a88708491c (patch)
tree750d96f64c0b8e3c93f524d6019f361d0d5bc93a
parenta2c51da6581dbc38c60c9fc41d1b624ff2c8de97 (diff)
downloadsrc-cb2d1350154aab1d649ca70d45ebc7a88708491c.tar.gz
src-cb2d1350154aab1d649ca70d45ebc7a88708491c.zip
csu: define STRIP_FBSDID
__FBSDID() places the provided string in the output object's .comment section. However, with the transition to Git $FreeBSD$ is no longer expanded and so we emitted a literal $FreeBSD$. $FreeBSD$ will be addressed in a holistic manner in the future, but at least avoid embedding it into everything linked on FreeBSD (via csu). Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D33594
-rw-r--r--lib/csu/Makefile.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/csu/Makefile.inc b/lib/csu/Makefile.inc
index 31c1bcbd7278..1633fa3dc3ea 100644
--- a/lib/csu/Makefile.inc
+++ b/lib/csu/Makefile.inc
@@ -19,6 +19,7 @@ CRT1OBJS+= crtbrand.o feature_note.o ignore_init_note.o
ACFLAGS+= -DLOCORE
+CFLAGS+= -DSTRIP_FBSDID
CFLAGS+= -fno-asynchronous-unwind-tables
CFLAGS+= -fno-omit-frame-pointer
CFLAGS+= -I${.CURDIR:H}/common \