From 5096f7c858b3e3151040b27748ec59e516ac3b80 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 25 Mar 2024 20:57:21 -0400 Subject: usr.sbin: init: Fix Makefile Signed-off-by: Ian Moffett --- usr.sbin/init/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/init/Makefile b/usr.sbin/init/Makefile index fa65c8d..a7af644 100644 --- a/usr.sbin/init/Makefile +++ b/usr.sbin/init/Makefile @@ -4,5 +4,4 @@ LDSO = .PHONY: all all: - $(CC) -c main.c -o main.o; - $(LD) --dynamic-linker /usr/lib/ld.so $(LDSO) main.o -o init -e main + $(CC) -pie -nostdlib main.c -o init -e main -- cgit v1.2.3