PTHREAD_LDADD
authorEric Biggers <ebiggers3@gmail.com>
Sun, 18 Nov 2012 20:53:53 +0000 (14:53 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 18 Nov 2012 20:53:53 +0000 (14:53 -0600)
Makefile.am
configure.ac
rpm/wimlib-minimal.spec

index 3f04be8..035eda4 100644 (file)
@@ -71,7 +71,8 @@ libwim_la_LIBADD =            \
        $(LIBNTFS_3G_LDADD)     \
        $(LTLIBICONV)           \
        $(LIBCRYPTO_LDADD)      \
-       $(SSSE3_SHA1_OBJ)
+       $(SSSE3_SHA1_OBJ)       \
+       $(PTHREAD_LDADD)
 
 libwim_la_CFLAGS =             \
        $(AM_CFLAGS)            \
index 63f0097..5c4ad6b 100644 (file)
@@ -147,7 +147,11 @@ if test "x$ENABLE_MULTITHREADED_COMPRESSION" = "xyes"; then
        AC_DEFINE([ENABLE_MULTITHREADED_COMPRESSION], [1],
                        [Define to 1 if including support for multithreaded
                         compression])
+       PTHREAD_LDADD="-lpthread"
+else
+       PTHREAD_LDADD=""
 fi
+AC_SUBST([PTHREAD_LDADD], [$PTHREAD_LDADD])
 
 AC_MSG_CHECKING([whether to include support for ntfs-3g])
 AC_ARG_WITH([ntfs-3g],
index cbd3272..a22ff67 100644 (file)
@@ -36,6 +36,7 @@ Development files for wimlib
           --without-fuse                \
           --disable-xattr               \
            --disable-verify-compression  \
+          --disable-multithreaded-compression \
           --disable-custom-memory-allocator \
           --disable-assertions
 %__make %{?_smp_mflags}