From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Greg Troxel Newsgroups: gmane.lisp.guile.devel Subject: Re: "guile-config link" reports LDFLAGS it has been compiled with Date: Mon, 18 Feb 2008 09:19:09 -0500 Message-ID: References: <47653CEA.9090601@gentoo.org> <878x1kijzd.fsf@gnu.org> <87pruwh4hn.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203344368 8989 80.91.229.12 (18 Feb 2008 14:19:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Feb 2008 14:19:28 +0000 (UTC) Cc: guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Feb 18 15:19:52 2008 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JR6qV-0005gK-SH for guile-devel@m.gmane.org; Mon, 18 Feb 2008 15:19:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JR6q0-0002Yp-Mw for guile-devel@m.gmane.org; Mon, 18 Feb 2008 09:19:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JR6px-0002Uk-6w for guile-devel@gnu.org; Mon, 18 Feb 2008 09:19:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JR6pu-0002O3-9g for guile-devel@gnu.org; Mon, 18 Feb 2008 09:19:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JR6pu-0002Ng-37 for guile-devel@gnu.org; Mon, 18 Feb 2008 09:19:14 -0500 Original-Received: from fnord.ir.bbn.com ([192.1.100.210]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JR6pq-0008VA-1H; Mon, 18 Feb 2008 09:19:10 -0500 Original-Received: by fnord.ir.bbn.com (Postfix, from userid 10853) id 40C5952EF; Mon, 18 Feb 2008 09:19:09 -0500 (EST) X-Hashcash: 1:20:080218:guile-devel@gnu.org::UQ3myfKEt0fa2xow:0000000000000000000000000000000000000000001EJV X-Hashcash: 1:20:080218:ludo@gnu.org::UQ3myfKEt0fa2xow:000002Eey In-Reply-To: <87pruwh4hn.fsf@gnu.org> ("Ludovic =?iso-8859-1?Q?Court=E8s?= =?iso-8859-1?Q?=22's?= message of "Sun, 17 Feb 2008 00:21:40 +0100") User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (berkeley-unix) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:7023 Archived-At: Wait, no: the argument for `$CPPFLAGS' also applies to `$LDFLAGS'. That is, if `-L' flags are passed through `$LDFLAGS' to `configure', like `-L/path/to/gmp', then they must be reported by "guile-config link". Admittedly, it has the undesirable side-effect of reporting completely unrelated link flags as well. Unfortunately, I'm not sure we could reliably filter `$LDFLAGS'. And, this really should use -Wl,-R as well on platforms that use the -R convention. Strictly speaking, I think we need both LDFLAGS and -L$(libdir); it may be that guile was built with prereqs from one place and installed in another. But it may always put it's own libdir in LDFLAGS. It would be nice to see a pkg-config file for guile; I kind of remember this floating around on the list but 1.8.3 doesn't seem to install it.