From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Raeburn Newsgroups: gmane.lisp.guile.bugs Subject: Re: GUILE_CFLAGS contains warning options Date: Sun, 20 Feb 2011 21:52:56 -0500 Message-ID: <19CB6019-550D-4806-81F5-B186C587DC4E@raeburn.org> References: <201102191507.50333.bruno@clisp.org> <201102202350.16563.bruno@clisp.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1298256792 26840 80.91.229.12 (21 Feb 2011 02:53:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 Feb 2011 02:53:12 +0000 (UTC) Cc: bug-guile@gnu.org, =?iso-8859-1?Q?Ludovic_Court=E8s?= To: Bruno Haible Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Feb 21 03:53:08 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PrLtb-0001Mq-T0 for guile-bugs@m.gmane.org; Mon, 21 Feb 2011 03:53:08 +0100 Original-Received: from localhost ([127.0.0.1]:57870 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrLtb-0008Ch-Hq for guile-bugs@m.gmane.org; Sun, 20 Feb 2011 21:53:07 -0500 Original-Received: from [140.186.70.92] (port=58618 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrLtV-0008CY-KR for bug-guile@gnu.org; Sun, 20 Feb 2011 21:53:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrLtU-0002RR-7b for bug-guile@gnu.org; Sun, 20 Feb 2011 21:53:01 -0500 Original-Received: from mail-qy0-f176.google.com ([209.85.216.176]:52524) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrLtU-0002RC-5H; Sun, 20 Feb 2011 21:53:00 -0500 Original-Received: by qyk30 with SMTP id 30so1082443qyk.0 for ; Sun, 20 Feb 2011 18:52:58 -0800 (PST) Original-Received: by 10.229.214.141 with SMTP id ha13mr622237qcb.60.1298256778427; Sun, 20 Feb 2011 18:52:58 -0800 (PST) Original-Received: from [10.0.0.158] (c-24-128-190-224.hsd1.ma.comcast.net [24.128.190.224]) by mx.google.com with ESMTPS id q12sm3474602qcu.30.2011.02.20.18.52.57 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 20 Feb 2011 18:52:57 -0800 (PST) In-Reply-To: <201102202350.16563.bruno@clisp.org> X-Mailer: Apple Mail (2.1082) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.176 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5205 Archived-At: On Feb 20, 2011, at 17:50, Bruno Haible wrote: > For the PTHREAD_CFLAGS it is more tricky: On most platforms you can = use > "-lpthread" instead of "-pthread", and all compilers support -l = options. > But on OSF/1, the options for using threads are compiler dependent: > * -pthread for cc, > * -lpthread for gcc. There are other platforms where compiling for thread support changes = more than just adding a library. For example, in NetBSD 5.0, it looks = like stdio.h defines getc() in a non-thread-safe way if _REENTRANT and = _PTHREADS (which get defined by "gcc -pthread") are not defined. So = even with gcc, just replacing "-pthread" with "-lpthread" isn't good = enough. Ken=