diff --git a/daemon/Makefile b/daemon/Makefile
index e028e95..1233855 100644
--- a/daemon/Makefile
+++ b/daemon/Makefile
@@ -6,7 +6,7 @@ THISDIR  = $(shell pwd)
 all:		netatopd
 
 netatopd:	netatopd.o Makefile
-		$(CC) netatopd.o -o netatopd -lz
+		$(CC) $(LDFLAGS) netatopd.o -o netatopd -lz
 
 clean:
 		rm -f *.o netatopd