--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
-CFLAGS = -O3 -Wall -Wextra -pedantic -Wformat-security -std=gnu89
+CFLAGS = -O3 -Wall         -pedantic -Wformat-security -std=gnu89
 
 all: hexcompare
 
 hexcompare: main.c gui.c
-	$(CC) $(CFLAGS) -o hexcompare main.c gui.c -lncurses
+	$(CC) $(CFLAGS) -o hexcompare main.c gui.c -lncurses $(LDFLAGS)
 
 clean:
 	rm -f *.o
