mc: remove extra white space
[buildroot-gz.git] / package / fbgrab / 0001-fix-static-build.patch
blobfe5ae2cab18557187c4243e2d000882fb49e61f3
1 Fix static build
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>
9 Index: b/Makefile
10 ===================================================================
11 --- a/Makefile
12 +++ b/Makefile
13 @@ -12,7 +12,7 @@
14 all: fbgrab fbgrab.1.gz
16 fbgrab: fbgrab.c
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) $< > $@