diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/memcached/files/memcached-1.4.4-as-needed.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/memcached/files/memcached-1.4.4-as-needed.patch')
-rw-r--r-- | net-misc/memcached/files/memcached-1.4.4-as-needed.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/net-misc/memcached/files/memcached-1.4.4-as-needed.patch b/net-misc/memcached/files/memcached-1.4.4-as-needed.patch new file mode 100644 index 000000000000..f6e5cde11057 --- /dev/null +++ b/net-misc/memcached/files/memcached-1.4.4-as-needed.patch @@ -0,0 +1,31 @@ +diff -Nuar memcached-1.4.4.orig/configure.ac memcached-1.4.4/configure.ac +--- memcached-1.4.4.orig/configure.ac 2009-11-24 16:40:29.000000000 -0800 ++++ memcached-1.4.4/configure.ac 2009-11-27 15:20:38.000000000 -0800 +@@ -115,6 +115,14 @@ + AC_SUBST(ENABLE_SASL) + AC_SUBST(PROFILER_LDFLAGS) + ++dnl Check whether the user's system supports pthread before adding -pthread to CFLAGS ++dnl otherwise we won't get -l{threads} in LIBS ++dnl AFAIK -pthread should be added to LDFLAGS on BSD systems ++AC_SEARCH_LIBS(pthread_create, [pthread pthreads thread threads] ) ++if test "x$ac_cv_search_pthread_create" == "xno"; then ++ AC_MSG_ERROR([Can't enable threads without the POSIX thread library.]) ++fi ++ + AC_ARG_ENABLE(coverage, + [AS_HELP_STRING([--disable-coverage],[Disable code coverage])]) + +@@ -376,12 +384,6 @@ + + AC_C_HTONLL + +-dnl Check whether the user's system supports pthread +-AC_SEARCH_LIBS(pthread_create, pthread) +-if test "x$ac_cv_search_pthread_create" = "xno"; then +- AC_MSG_ERROR([Can't enable threads without the POSIX thread library.]) +-fi +- + AC_CHECK_FUNCS(mlockall) + AC_CHECK_FUNCS(getpagesizes) + AC_CHECK_FUNCS(memcntl) |