3 fbgrab links against libpng, which depends on libm. For shared library
4 builds, there is nothing special to do about this, but for static
5 library builds, it is necessary to pass -lm when linking fbgrab.
7 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 ===================================================================
14 all: fbgrab fbgrab.1.gz
17 - $(CC) -g -Wall $(CFLAGS) $(LDFLAGS) $< -lpng -lz -o $@
18 + $(CC) -g -Wall $(CFLAGS) $(LDFLAGS) $< -lpng -lz -lm -o $@
20 fbgrab.1.gz: fbgrab.1.man
21 $(GZIP) $(GZIPFLAGS) $< > $@