eb12519e56
Fix -pthread in fuse.pc [bnc#761117] OBS-URL: https://build.opensuse.org/request/show/121243 OBS-URL: https://build.opensuse.org/package/show/filesystems/fuse?expand=0&rev=37
84 lines
3.0 KiB
Diff
84 lines
3.0 KiB
Diff
From 384496dd02cfd9a74b95d62ce0d23a31a7af3730 Mon Sep 17 00:00:00 2001
|
|
From: Miklos Szeredi <mszeredi@suse.cz>
|
|
Date: Wed, 16 May 2012 16:45:27 +0200
|
|
Subject: [PATCH] Fix -pthread in fuse.pc
|
|
|
|
Linking to a library that uses threads requires the application to be linked
|
|
with -pthreads otherwise some pthread functions will be linked to stubs in
|
|
glibc. So move -pthread from Libs.private to Libs in fuse.pc.
|
|
|
|
Reported by Werner Fink
|
|
---
|
|
ChangeLog | 7 +++++++
|
|
configure.in | 5 ++---
|
|
fuse.pc.in | 2 +-
|
|
lib/Makefile.am | 2 +-
|
|
4 files changed, 11 insertions(+), 5 deletions(-)
|
|
|
|
Index: fuse-2.9.0/ChangeLog
|
|
===================================================================
|
|
--- fuse-2.9.0.orig/ChangeLog 2012-04-20 16:29:19.000000000 +0200
|
|
+++ fuse-2.9.0/ChangeLog 2012-05-16 17:51:34.000000000 +0200
|
|
@@ -1,3 +1,10 @@
|
|
+2012-05-16 Miklos Szeredi <miklos@szeredi.hu>
|
|
+
|
|
+ * Linking to a library that uses threads requires the application
|
|
+ to be linked with -pthreads otherwise some pthread functions will
|
|
+ be linked to stubs in glibc. So move -pthread from Libs.private
|
|
+ to Libs in fuse.pc. Reported by Werner Fink
|
|
+
|
|
2012-04-20 Miklos Szeredi <miklos@szeredi.hu>
|
|
|
|
* Released 2.9.0
|
|
Index: fuse-2.9.0/configure.in
|
|
===================================================================
|
|
--- fuse-2.9.0.orig/configure.in 2012-05-16 17:51:33.000000000 +0200
|
|
+++ fuse-2.9.0/configure.in 2012-05-16 17:51:34.000000000 +0200
|
|
@@ -62,11 +62,10 @@ AC_CHECK_FUNCS([fork setxattr fdatasync
|
|
AC_CHECK_MEMBERS([struct stat.st_atim])
|
|
AC_CHECK_MEMBERS([struct stat.st_atimespec])
|
|
|
|
-libfuse_libs="-pthread"
|
|
LIBS=
|
|
AC_SEARCH_LIBS(dlopen, [dl])
|
|
AC_SEARCH_LIBS(clock_gettime, [rt])
|
|
-libfuse_libs="$libfuse_libs $LIBS"
|
|
+libfuse_libs=$LIBS
|
|
LIBS=
|
|
AC_ARG_WITH([libiconv-prefix],
|
|
[ --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib], [
|
|
@@ -76,7 +75,7 @@ AC_ARG_WITH([libiconv-prefix],
|
|
done
|
|
])
|
|
AM_ICONV
|
|
-libfuse_libs="$libfuse_libs $LTLIBICONV"
|
|
+libfuse_libs=$libfuse_libs $LTLIBICONV
|
|
AM_CONDITIONAL(ICONV, test "$am_cv_func_iconv" = yes)
|
|
AC_SUBST(libfuse_libs)
|
|
|
|
Index: fuse-2.9.0/fuse.pc.in
|
|
===================================================================
|
|
--- fuse-2.9.0.orig/fuse.pc.in 2012-04-10 15:28:55.000000000 +0200
|
|
+++ fuse-2.9.0/fuse.pc.in 2012-05-16 17:51:34.000000000 +0200
|
|
@@ -6,6 +6,6 @@ includedir=@includedir@
|
|
Name: fuse
|
|
Description: Filesystem in Userspace
|
|
Version: @VERSION@
|
|
-Libs: -L${libdir} -lfuse
|
|
+Libs: -L${libdir} -lfuse -pthread
|
|
Libs.private: @libfuse_libs@
|
|
Cflags: -I${includedir}/fuse -D_FILE_OFFSET_BITS=64
|
|
Index: fuse-2.9.0/lib/Makefile.am
|
|
===================================================================
|
|
--- fuse-2.9.0.orig/lib/Makefile.am 2012-04-20 12:01:56.000000000 +0200
|
|
+++ fuse-2.9.0/lib/Makefile.am 2012-05-16 17:51:34.000000000 +0200
|
|
@@ -36,7 +36,7 @@ libfuse_la_SOURCES = \
|
|
$(iconv_source) \
|
|
$(mount_source)
|
|
|
|
-libfuse_la_LDFLAGS = @libfuse_libs@ -version-number 2:9:0 \
|
|
+libfuse_la_LDFLAGS = -pthread @libfuse_libs@ -version-number 2:9:0 \
|
|
-Wl,--version-script,$(srcdir)/fuse_versionscript
|
|
|
|
if NETBSD
|