aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2026-04-20 17:52:59 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2026-04-27 01:44:09 +0000
commit24d887436dcd5b6c18a7505e477c79cae3002c3a (patch)
treeec4b48a6aad30f9ace860ef290d5d6bf48ed9525
parentf7bf9fd6199c99284dbc899928d8ad62861da414 (diff)
init: build dynamically
This makes it easier to downgrade kernel when it stops providing some syscall required by libc. In this case, it is enough to downgrade libc as well, our crt1 delegates all non-trivial work to libc::__libc_start1(). With static init, the /sbin/init should be downgraded as well, which might be not easy. This does not mean that we support forward compatibility. Reviewed by: imp, jilles, zlei Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D56536
-rw-r--r--sbin/init/Makefile2
1 files changed, 0 insertions, 2 deletions
diff --git a/sbin/init/Makefile b/sbin/init/Makefile
index 1fc9b633f664..342df4596a72 100644
--- a/sbin/init/Makefile
+++ b/sbin/init/Makefile
@@ -10,6 +10,4 @@ LIBADD= util crypt
CONFTTYSNAME= ttys
CONFTTYS+= ttys
-NO_SHARED?= YES
-
.include <bsd.prog.mk>