aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/Makefile
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-03-24 22:54:10 -0400
committerIan Moffett <ian@osmora.org>2024-03-24 22:54:10 -0400
commitefe5fc5ba52d131baa3d5b297fd7585dfa2eca2b (patch)
tree058d4bc142c569a4ca9995dc759195d91a442e0c /lib/libc/Makefile
parentabcae7fa5191b32471e4ff0815b0a355328170e2 (diff)
libc: build: Fixup Makefile
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/libc/Makefile')
-rw-r--r--lib/libc/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/Makefile b/lib/libc/Makefile
index 9135d20..fabb532 100644
--- a/lib/libc/Makefile
+++ b/lib/libc/Makefile
@@ -11,7 +11,8 @@ build/ld.so: build/ linker/entry.c linker/entry.S
mkdir -p $(@D)
$(CC) $(CFLAGS) linker/entry.S -o build/entry.S.o
$(CC) $(CFLAGS) linker/entry.c -o build/entry.o
- $(LD) build/entry.o build/entry.S.o -o $(LIBC_OBJ) -o $@
+ $(LD) -znoexecstack $(LIBC_OBJ) \
+ build/entry.o build/entry.S.o -o $@
%.o: %.c
$(CC) $(CFLAGS) $< -o $@