aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-03-14 21:59:20 -0400
committerIan Moffett <ian@osmora.org>2024-03-14 21:59:20 -0400
commitd1c96bcab646749a587cdbdbf9fc207b9a297312 (patch)
treeee0a146233bd7c8a093551a40253f43646413a69 /usr.sbin
parentc550f3ac8342ad3e94805742d6dcc620cf428db5 (diff)
build: Update usr.sbin Makefiles
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/Makefile3
-rw-r--r--usr.sbin/init/Makefile3
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/Makefile b/usr.sbin/Makefile
index 7cf3d01..c75ebd0 100644
--- a/usr.sbin/Makefile
+++ b/usr.sbin/Makefile
@@ -1,6 +1,7 @@
CC =
LD =
+LDSO =
.PHONY: all
all:
- cd init/; make CC=$(CC) LD=$(LD)
+ cd init/; make LDSO=$(LDSO) CC=$(CC) LD=$(LD)
diff --git a/usr.sbin/init/Makefile b/usr.sbin/init/Makefile
index 4b578f8..fa65c8d 100644
--- a/usr.sbin/init/Makefile
+++ b/usr.sbin/init/Makefile
@@ -1,7 +1,8 @@
CC =
LD =
+LDSO =
.PHONY: all
all:
$(CC) -c main.c -o main.o;
- $(LD) main.o -o init -e main
+ $(LD) --dynamic-linker /usr/lib/ld.so $(LDSO) main.o -o init -e main