summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoronelin <oscar@nelin.dk>2026-11-19 21:24:47 +0000
committeronelin <oscar@nelin.dk>2026-11-19 21:24:47 +0000
commitc46053cad6bef5437c018b2f66e3146dcf74ec59 (patch)
treef900215abfbcb5dd3571d4c0e6bbb390b9f1f978
parentcaa65f353392ffa8416d9841ac2a30ec3c9d0f56 (diff)
Stricter compilation, enable lto
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a556109..324eeb0 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
all: fmt test.out
write-elf: main.c write_elf.c registers.h instructions.h
- $(CC) -m64 -static-pie main.c -o write-elf
+ $(CC) -flto -Wall -pedantic -std=c99 -m64 -static-pie main.c -o write-elf
test.out: write-elf
./write-elf