• 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/blackbox/blackbox-001-Fix-configure-ac.patch
Vicente Olivert RieraVicente Olivert Riera committed 218b4ec6bcc17 Dec 2013
Raw file
Source viewDiff to previous
 
1
blackbox: merge existing patch and fix lpthread
2
​
3
Merge the current configure patch into this one so it will patch 
4
configure.ac instead. Also add pthread to libs to fix a linkage problem.
5
​
6
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
7
--- blackbox-0.70.1/configure.ac.orig   2013-12-17 11:02:38.799055141 +0000
8
+++ blackbox-0.70.1/configure.ac    2013-12-17 11:09:08.421204545 +0000
9
@@ -8,14 +8,6 @@ AC_CONFIG_SRCDIR([src/blackbox.cc])
10
 dnl Determine default prefix
11
 test "x$prefix" = "xNONE" && prefix="$ac_default_prefix"
12
 
13
-dnl Look in the most logical places for external libraries
14
-CPPFLAGS="$CPPFLAGS -I$prefix/include"
15
-LDFLAGS="$LDFLAGS -L$prefix/lib"
16
-if test "x$prefix" != "x/usr/local"; then
17
-  CPPFLAGS="$CPPFLAGS -I/usr/local/include"
18
-  LDFLAGS="$LDFLAGS -L/usr/local/lib"
19
-fi
20
-
21
 dnl Locate required external software
22
 AC_PROG_CC
23
 
24
@@ -128,6 +120,10 @@ int main(int, char **)
25
                   [AC_MSG_RESULT([no])]
26
                  )
27
 
28
+dnl required pthread
29
+AC_CHECK_LIB([pthread],
30
+        [pthread_cancel],
31
+        [LIBS="$LIBS -lpthread"])
32
 dnl needed for some X11 libs
33
 AC_CHECK_LIB([nsl],
34
              [t_open],
  • 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.