Commit 85772fe3 authored by Siarhei Siamashka's avatar Siarhei Siamashka
Browse files

configure.ac: workaround libump/pthreads build issue

In some systems libump library is built without an explicit pthreads
dependency. As the issue has been already confirmed to affect both
sunxi and odroid users (and maybe the users of the other mali400
based hardware), it is easier to just workaround the problem locally.
Otherwise we would need to hunt down all the libump packagers and
beg for the fix.

More details are at https://github.com/ssvb/xf86-video-sunxifb/issues/11



Reported-by: Patrick Wood
Signed-off-by: default avatarSiarhei Siamashka <siarhei.siamashka@gmail.com>
parent de4c24e0
......@@ -84,6 +84,10 @@ fi
# Checks for libraries.
# add -pthread to workaround https://github.com/ssvb/xf86-video-sunxifb/issues/11
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -pthread"
AC_CHECK_LIB([UMP], [ump_open],
[have_libump=yes
LIBS="$LIBS -lUMP"
......@@ -93,6 +97,11 @@ AC_CHECK_LIB([UMP], [ump_cache_operations_control],
[AC_DEFINE(HAVE_LIBUMP_CACHE_CONTROL,[1],[UMP cache control])])
AM_CONDITIONAL([HAVE_LIBUMP], [test x$have_libump = xyes])
# revert back to the original CFLAGS if not messing with libUMP
if test "x$have_libump" = xno; then
CFLAGS="$save_CFLAGS"
fi
AC_SUBST([moduledir])
DRIVER_NAME=sunxifb
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment