diff --git a/tests/Makefile b/tests/Makefile
index 33fd0564db5393ad5dc877cb7956197a75f699cb..81f4a4fb67105d8625c03ff3e4515586f4f01bb6 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -131,10 +131,10 @@ CFLAGS=\
 	-I ../target/openlibm/src \
 
 HEADLIBS=\
-	../target/debug/crt0.o
+	../target/release/crt0.o
 
 TAILLIBS=\
-	../target/debug/libc.a \
+	../target/release/libc.a \
 	../target/openlibm/libopenlibm.a
 
 %: %.c $(HEADLIBS) $(TAILLIBS)