Skip to content

Commit c10de36

Browse files
committedOct 21, 2013
Fixed AC_TRY_COMPILE tests on CentOS
1 parent 2a7ccfa commit c10de36

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎config.m4

+5-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,11 @@ if test "$PHP_MEMCACHED" != "no"; then
250250
ORIG_LIBS="$LIBS"
251251

252252
CFLAGS="$CFLAGS -I$PHP_LIBMEMCACHED_INCDIR"
253-
LIBS="$LIBS -lmemcached -L$PHP_LIBMEMCACHED_DIR/$PHP_LIBDIR"
253+
254+
#
255+
# Added -lpthread here because AC_TRY_LINK tests on CentOS 6 seem to fail with undefined reference to pthread_once
256+
#
257+
LIBS="$LIBS -lpthread -lmemcached -L$PHP_LIBMEMCACHED_DIR/$PHP_LIBDIR"
254258

255259
AC_CACHE_CHECK([whether memcached_instance_st is defined], ac_cv_have_memcached_instance_st, [
256260
AC_TRY_COMPILE(

0 commit comments

Comments
 (0)
Please sign in to comment.