1 blackbox: merge existing patch and fix lpthread
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.
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"
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"
21 dnl Locate required external software
24 @@ -128,6 +120,10 @@ int main(int, char **)
29 +AC_CHECK_LIB([pthread],
31 + [LIBS="$LIBS -lpthread"])
32 dnl needed for some X11 libs