diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2012-05-16 16:45:27 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2012-05-16 16:45:27 +0200 |
commit | 384496dd02cfd9a74b95d62ce0d23a31a7af3730 (patch) | |
tree | 056675b9a2d44cc46673e183a912ab33b2483718 /configure.in | |
parent | acc5c79dd60c1c2aa528743394e3a9fad7f5def3 (diff) | |
download | fuse-384496dd02cfd9a74b95d62ce0d23a31a7af3730.tar.gz |
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
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/configure.in b/configure.in index f2e6c87..e9ce79b 100644 --- a/configure.in +++ b/configure.in @@ -60,11 +60,10 @@ AC_CHECK_FUNCS([fork setxattr fdatasync splice vmsplice utimensat]) 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], [ @@ -74,7 +73,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) |