From bb099990af0d3e80c4b2156e7c2d70ce25cb2088 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Wed, 5 Sep 2012 08:40:59 +0000 Subject: [PATCH] On Haiku, do not pass -lpthread to the compiler Haiku's pthreads implementation is contained in its system library, libroot, so no additional library needs to be searched. Patch submitted by Simon South in #3564815. --- configure.in | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index db4fc948..bc8a3e35 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. dnl -dnl $Id: configure.in,v 1.166 2011/12/26 17:03:31 fabiankeil Exp $ +dnl $Id: configure.in,v 1.167 2011/12/31 14:43:40 fabiankeil Exp $ dnl dnl Written by and Copyright (C) 2001-2010 the dnl Privoxy team. http://www.privoxy.org/ @@ -32,7 +32,7 @@ dnl ================================================================= dnl AutoConf Initialization dnl ================================================================= -AC_REVISION($Revision: 1.166 $) +AC_REVISION($Revision: 1.167 $) AC_INIT(jcc.c) if test ! -f config.h.in; then @@ -311,7 +311,14 @@ else echo "Using Cygnus (Win32 command line)" else SPECIAL_CFLAGS= - PTHREAD_LIB=-lpthread + if test $host_os = haiku; then + dnl Haiku's pthreads implementation is contained in its system + dnl library, libroot, so no additional library needs to be + dnl searched + PTHREAD_LIB= + else + PTHREAD_LIB=-lpthread + fi fi fi AC_SUBST(WIN_ONLY) -- 2.39.2