From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.bugs Subject: Re: GUILE_CFLAGS contains warning options Date: Tue, 22 Feb 2011 21:46:36 +0100 Message-ID: <878vx7bxw3.fsf@gnu.org> References: <201102191507.50333.bruno@clisp.org> <201102202350.16563.bruno@clisp.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1298407652 14261 80.91.229.12 (22 Feb 2011 20:47:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 22 Feb 2011 20:47:32 +0000 (UTC) Cc: bug-guile@gnu.org To: Bruno Haible Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Feb 22 21:47:27 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 1Prz8o-0007ap-V5 for guile-bugs@m.gmane.org; Tue, 22 Feb 2011 21:47:27 +0100 Original-Received: from localhost ([127.0.0.1]:55249 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Prz8o-0004qd-Eo for guile-bugs@m.gmane.org; Tue, 22 Feb 2011 15:47:26 -0500 Original-Received: from [140.186.70.92] (port=54539 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Prz84-0004Jd-L8 for bug-guile@gnu.org; Tue, 22 Feb 2011 15:46:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Prz82-0007vl-Sr for bug-guile@gnu.org; Tue, 22 Feb 2011 15:46:40 -0500 Original-Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:39221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Prz82-0007ve-O0 for bug-guile@gnu.org; Tue, 22 Feb 2011 15:46:38 -0500 X-IronPort-AV: E=Sophos;i="4.62,207,1297033200"; d="scan'208";a="76392175" Original-Received: from reverse-83.fdn.fr (HELO nixey) ([80.67.176.83]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 22 Feb 2011 21:46:37 +0100 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 4 =?iso-8859-1?Q?Vent=F4se?= an 219 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: <201102202350.16563.bruno@clisp.org> (Bruno Haible's message of "Sun, 20 Feb 2011 23:50:15 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.134.164.104 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:5222 Archived-At: Hi Bruno, Bruno Haible writes: > Andy Wingo wrote: >> > $LIBDIR/pkgconfig/guile-2.0.pc contains a line such as >> > >> > Cflags: -I${pkgincludedir}/2.0 -Wall -I$LIBUNISTRING_PREFIX/include = -pthread -I$GC_PREFIX/include=20=20 >>=20 >> The template is: >>=20 >> Cflags: -I${pkgincludedir}/@GUILE_EFFECTIVE_VERSION@ @GUILE_CFLAGS@ @B= DW_GC_CFLAGS@ >> ... >> And in configure.ac I have: >>=20 >> GUILE_CFLAGS=3D"$CPPFLAGS $PTHREAD_CFLAGS" [...] > You can extract the -I options from $CPPFLAGS; this would be OK since all > compilers support -I. That=E2=80=99s probably the right thing to do. However, why do you have -Wall in CPPFLAGS, instead of CFLAGS, in the first place? :-) > 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. This and more, as Ken mentioned, so I=E2=80=99d leave it as is for now. Thanks, Ludo=E2=80=99.