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 / blackbox / 0001-Fix-configure-ac.patch
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],