X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fblackbox%2F0001-Fix-configure-ac.patch;fp=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fblackbox%2F0001-Fix-configure-ac.patch;h=180447332c50fc445b18e2952749b4408152585b;hb=b0a0f15dfaa205161a7fcb20cf1b8cd4948c2ef3;hp=0000000000000000000000000000000000000000;hpb=c6ac3cd55ee2da956195eee393b0882105dfad4e;p=packages%2Ftrusty%2Fcirros-testvm.git diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/blackbox/0001-Fix-configure-ac.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/blackbox/0001-Fix-configure-ac.patch new file mode 100644 index 0000000..1804473 --- /dev/null +++ b/cirros-testvm/src-cirros/buildroot-2015.05/package/blackbox/0001-Fix-configure-ac.patch @@ -0,0 +1,34 @@ +blackbox: merge existing patch and fix lpthread + +Merge the current configure patch into this one so it will patch +configure.ac instead. Also add pthread to libs to fix a linkage problem. + +Signed-off-by: Vicente Olivert Riera +--- blackbox-0.70.1/configure.ac.orig 2013-12-17 11:02:38.799055141 +0000 ++++ blackbox-0.70.1/configure.ac 2013-12-17 11:09:08.421204545 +0000 +@@ -8,14 +8,6 @@ AC_CONFIG_SRCDIR([src/blackbox.cc]) + dnl Determine default prefix + test "x$prefix" = "xNONE" && prefix="$ac_default_prefix" + +-dnl Look in the most logical places for external libraries +-CPPFLAGS="$CPPFLAGS -I$prefix/include" +-LDFLAGS="$LDFLAGS -L$prefix/lib" +-if test "x$prefix" != "x/usr/local"; then +- CPPFLAGS="$CPPFLAGS -I/usr/local/include" +- LDFLAGS="$LDFLAGS -L/usr/local/lib" +-fi +- + dnl Locate required external software + AC_PROG_CC + +@@ -128,6 +120,10 @@ int main(int, char **) + [AC_MSG_RESULT([no])] + ) + ++dnl required pthread ++AC_CHECK_LIB([pthread], ++ [pthread_cancel], ++ [LIBS="$LIBS -lpthread"]) + dnl needed for some X11 libs + AC_CHECK_LIB([nsl], + [t_open],