• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/fbgrab/fbgrab-01-fix-static-build.patch
Thomas PetazzoniThomas Petazzoni committed b8242149e4818 May 2014
Raw file
Source viewDiff to previous
 
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) $< > $@
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.