summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlo Bramini <carlo.bramix@libero.it>2012-06-05 12:11:25 +0300
committerCarlo Bramini <carlo.bramix@libero.it>2012-06-05 12:11:25 +0300
commite6dddfdfa6cfa00c5e87e99f5c13e24cadf8204d (patch)
tree518f8c9a5b6dafcce681a22c6ceb87455e171ce9
parent7b4ba1fcb3772f8998813b1a76a0ef964fa69538 (diff)
downloadxine-lib-e6dddfdfa6cfa00c5e87e99f5c13e24cadf8204d.tar.gz
xine-lib-e6dddfdfa6cfa00c5e87e99f5c13e24cadf8204d.tar.bz2
CYGWIN needs PTHREAD_CFLAGS to be empty and PTHREAD_LIBS to be "-lpthread"
-rw-r--r--m4/pthreads.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/m4/pthreads.m4 b/m4/pthreads.m4
index 6cbed9255..06a046a76 100644
--- a/m4/pthreads.m4
+++ b/m4/pthreads.m4
@@ -19,6 +19,7 @@ AC_DEFUN([CC_PTHREAD_FLAGS], [
if test "${PTHREAD_CFLAGS-unset}" = "unset"; then
case $host in
*-mingw*) PTHREAD_CFLAGS="" ;;
+ *-cygwin*) PTHREAD_CFLAGS="" ;;
*-hpux11*) PTHREAD_CFLAGS="" ;;
*-darwin*) PTHREAD_CFLAGS="" ;;
*-solaris*|*-linux-gnu)
@@ -31,6 +32,7 @@ AC_DEFUN([CC_PTHREAD_FLAGS], [
if test "${PTHREAD_LIBS-unset}" = "unset"; then
case $host in
*-mingw*) PTHREAD_LIBS="-lpthreadGC2" ;;
+ *-cygwin*) PTHREAD_LIBS="-lpthread" ;;
*-hpux11*) PTHREAD_LIBS="-lpthread" ;;
*-darwin*) PTHREAD_LIBS="" ;;
*-solaris*)