1Fix static build 2 3fbgrab links against libpng, which depends on libm. For shared library 4builds, there is nothing special to do about this, but for static 5library builds, it is necessary to pass -lm when linking fbgrab. 6 7Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 8 9Index: b/Makefile 10=================================================================== 11--- a/Makefile 12+++ b/Makefile 13@@ -12,7 +12,7 @@ 14 all: fbgrab fbgrab.1.gz 15 16 fbgrab: fbgrab.c 17- $(CC) -g -Wall $(CFLAGS) $(LDFLAGS) $< -lpng -lz -o $@ 18+ $(CC) -g -Wall $(CFLAGS) $(LDFLAGS) $< -lpng -lz -lm -o $@ 19 20 fbgrab.1.gz: fbgrab.1.man 21 $(GZIP) $(GZIPFLAGS) $< > $@ 22