Added the -no-pie option for linking

This commit is contained in:
RoyR
2026-03-14 15:43:11 -04:00
parent a0175024f3
commit 01cb40babc
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ $(EXAMPLES): %: $(EXAMPLES_DIR)/%.cm $(COMPILER)
@echo "Building $@..."
./$(COMPILER) $(EXAMPLES_DIR)/$@.cm $@.asm
$(NASM) $(NASMFLAGS) $@.asm -o $@.o
$(LD) $(LDFLAGS) $@.o -o $@
$(LD) $(LDFLAGS) $@.o -o $@ -no-pie
@echo "Built $@ successfully"
# Run all examples