diff options
author | Ed Maste <emaste@FreeBSD.org> | 2021-12-20 21:30:09 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2022-02-08 20:53:31 +0000 |
commit | ef9fc5c52c4a8ec23d5e283eae15fb1c193e91d6 (patch) | |
tree | 661fbbf3b9d989e1a250c25fc9d6d995c9fa1166 | |
parent | 53f18b7c203663cc793905f56574c0bdf1ab184a (diff) |
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
(cherry picked from commit cb2d1350154aab1d649ca70d45ebc7a88708491c)
-rw-r--r-- | lib/csu/Makefile.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/csu/Makefile.inc b/lib/csu/Makefile.inc index d39722847b4e..6efeb1d7ff93 100644 --- a/lib/csu/Makefile.inc +++ b/lib/csu/Makefile.inc @@ -16,6 +16,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 \ |