From 3154c067ebd5e23b8be9693a1a790c70a9634344 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 7 Mar 2024 22:46:25 -0500 Subject: build: Create init stub Signed-off-by: Ian Moffett --- usr.sbin/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 usr.sbin/Makefile (limited to 'usr.sbin/Makefile') diff --git a/usr.sbin/Makefile b/usr.sbin/Makefile new file mode 100644 index 0000000..7cf3d01 --- /dev/null +++ b/usr.sbin/Makefile @@ -0,0 +1,6 @@ +CC = +LD = + +.PHONY: all +all: + cd init/; make CC=$(CC) LD=$(LD) -- cgit v1.2.3 From d1c96bcab646749a587cdbdbf9fc207b9a297312 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 14 Mar 2024 21:59:20 -0400 Subject: build: Update usr.sbin Makefiles Signed-off-by: Ian Moffett --- usr.sbin/Makefile | 3 ++- usr.sbin/init/Makefile | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'usr.sbin/Makefile') 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 -- cgit v1.2.3