From owner-freebsd-threads@FreeBSD.ORG Thu Mar 25 12:19:19 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DCCA16A4CE; Thu, 25 Mar 2004 12:19:19 -0800 (PST) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 2B8EA43D1D; Thu, 25 Mar 2004 12:19:18 -0800 (PST) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 25 Mar 2004 20:19:16 +0000 (GMT) To: freebsd-threads@freebsd.org X-Request-Do: Date: Thu, 25 Mar 2004 20:19:16 +0000 From: David Malone Message-ID: <200403252019.aa67859@salmon.maths.tcd.ie> cc: niallm@enigma.ie cc: nectar@freebsd.org Subject: Threads and OpenSSL X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2004 20:19:19 -0000 I'd like to commit the patch in PR 51205, that compiles the OpenSSL library in a way that allows it to be used in threaded programs. This prevents things like radius daemons blowing up. The patch is quite simple, but I though I'd better run it past the threads people before I committed it. David. diff -u -r1.36 Makefile.inc --- Makefile.inc 17 Mar 2004 16:15:45 -0000 1.36 +++ Makefile.inc 18 Mar 2004 15:18:04 -0000 @@ -5,6 +5,7 @@ CFLAGS+= -DTERMIOS -DANSI_SOURCE CFLAGS+= -I${LCRYPTO_SRC} -I${LCRYPTO_SRC}/crypto -I${.OBJDIR} +CFLAGS+= -DOPENSSL_THREADS -pthread -D_REENTRANT -D_THREAD_SAFE -D_THREADSAFE .if !defined(MAKE_IDEA) || ${MAKE_IDEA} != YES CFLAGS+= -DOPENSSL_NO_IDEA