From owner-freebsd-questions Fri Jan 11 15:47: 8 2002 Delivered-To: freebsd-questions@freebsd.org Received: from c418236-a.clmba1.mo.home.com (c418236-a.clmba1.mo.home.com [24.12.203.134]) by hub.freebsd.org (Postfix) with ESMTP id C657A37B400 for ; Fri, 11 Jan 2002 15:47:06 -0800 (PST) Received: from babylon.merseine.nu (babylon.domain.local [192.168.1.5]) by c418236-a.clmba1.mo.home.com (8.11.6/8.11.6) with ESMTP id g0BNl2L65955 for ; Fri, 11 Jan 2002 17:47:02 -0600 (CST) (envelope-from ishmael@home.com) Received: (from ishmael@localhost) by babylon.merseine.nu (8.11.6/8.11.6) id g0BNl2i46257 for questions@FreeBSD.org; Fri, 11 Jan 2002 17:47:02 -0600 (CST) (envelope-from ishmael) Date: Fri, 11 Jan 2002 17:47:02 -0600 From: Jeremy Norris To: questions@FreeBSD.org Subject: pthreads and shared libraries Message-ID: <20020111234702.GB28930@babylon.merseine.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.25i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I know under FreeBSD that you're supposed to define _THREAD_SAFE if you are writing code that uses pthreads, but what about compiling code that links to it if it is in a shared library (i.e. libfoo uses pthreads, and program baz links to libfoo)? Please cc me (I'm not subscribed to this list) in replies. Jeremy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message