diff --git a/Makefile b/Makefile index 9821dec..f2bb06e 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/test_runner.c b/test_runner.c index 11d26a4..34a68b5 100644 --- a/test_runner.c +++ b/test_runner.c @@ -72,7 +72,7 @@ static void run_test(Test *t) { } /* Link */ - if (run_command("gcc -m32 /tmp/test.o -o /tmp/test 2>/tmp/test.err") != 0) { + if (run_command("gcc -m32 /tmp/test.o -o /tmp/test 2>/tmp/test.err -no-pie") != 0) { printf("FAIL (linker error)\n"); test_failed++; return;