diff -u -r ../jhead-2.97/makefile ./makefile
--- ../jhead-2.97/makefile	2013-01-30 18:02:56.000000000 +0100
+++ ./makefile	2014-01-20 06:52:58.000000000 +0100
@@ -14,7 +14,7 @@
 	${CC} $(CFLAGS) -c $< -o $@
 
 jhead: $(objs) jhead.h
-	${CC} -o jhead $(objs) -lm
+	${CC} $(LDFLAGS) -o jhead $(objs) -lm
 
 clean:
 	rm -f $(objs) jhead