The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / fbgrab / 0001-fix-static-build.patch
1 Fix static build
2
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.
6
7 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8
9 Index: 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) $< > $@