nixpkgs/pkgs/tools/filesystems/fuse-7z-ng/no-pthread.patch
Sergei Trofimovich 848f1e6bb3 fuse-7z-ng: fix build against modern glibc
Wthout the change configure fails as:

    checking for pthread_yield in -lpthread... no
    configure: error: pthread library not found.

fuze-7z-ng does not use pthread itself. Let's just drop the check.
2022-11-11 18:56:33 +00:00

12 lines
409 B
Diff

pthread_yield() is not used by fuse-7z-ng, fails configure.
--- a/configure.ac
+++ b/configure.ac
@@ -25,7 +25,6 @@ AC_CHECK_HEADERS([fcntl.h stddef.h string.h unistd.h dlfcn.h dirent.h])
AC_CHECK_FUNCS([memset memmove])
AC_CHECK_FUNCS([sqrt])
-AC_CHECK_LIB([pthread], [pthread_yield],,AC_MSG_ERROR([pthread library not found.]))
AC_CHECK_LIB([dl], [dlclose])
PKG_CHECK_MODULES([fuse], [fuse >= 2.8])