From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yavor Doganov Newsgroups: gmane.emacs.bugs Subject: bug#2266: Superfluous linking against fontconfig Date: Tue, 10 Feb 2009 11:24:18 +0200 Organization: The GNU Emacs Church (Bulgarian eparchy) Message-ID: <87iqni7igt.GNU's_Not_Unix!%yavor@gnu.org> Reply-To: Yavor Doganov , 2266@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1234259031 16106 80.91.229.12 (10 Feb 2009 09:43:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Feb 2009 09:43:51 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 10 10:45:06 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LWpAv-0001ra-Cn for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Feb 2009 10:45:06 +0100 Original-Received: from localhost ([127.0.0.1]:56849 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWp9b-0003Ld-N9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Feb 2009 04:43:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWp9W-0003LD-6J for bug-gnu-emacs@gnu.org; Tue, 10 Feb 2009 04:43:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWp9U-0003KV-2B for bug-gnu-emacs@gnu.org; Tue, 10 Feb 2009 04:43:36 -0500 Original-Received: from [199.232.76.173] (port=43150 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWp9T-0003KS-SA for bug-gnu-emacs@gnu.org; Tue, 10 Feb 2009 04:43:35 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:58592) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LWp9T-00045j-8t for bug-gnu-emacs@gnu.org; Tue, 10 Feb 2009 04:43:35 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1A9hXPq002461; Tue, 10 Feb 2009 01:43:33 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1A9U3jM030726; Tue, 10 Feb 2009 01:30:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Yavor Doganov Original-Sender: news Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 10 Feb 2009 09:30:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2266 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: patch Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123425788629145 (code B ref -1); Tue, 10 Feb 2009 09:30:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 10 Feb 2009 09:24:46 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1A9Of8X029138 for ; Tue, 10 Feb 2009 01:24:43 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWorB-00033z-Ho for bug-gnu-emacs@gnu.org; Tue, 10 Feb 2009 04:24:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWorA-00033A-5o for bug-gnu-emacs@gnu.org; Tue, 10 Feb 2009 04:24:41 -0500 Original-Received: from [199.232.76.173] (port=46935 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWor9-000333-Aj for bug-gnu-emacs@gnu.org; Tue, 10 Feb 2009 04:24:39 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:54128 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LWor8-0001gx-Ot for bug-gnu-emacs@gnu.org; Tue, 10 Feb 2009 04:24:38 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LWor0-0004Zb-1k for bug-gnu-emacs@gnu.org; Tue, 10 Feb 2009 09:24:30 +0000 Original-Received: from 213.91.219.2 ([213.91.219.2]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Feb 2009 09:24:30 +0000 Original-Received: from yavor by 213.91.219.2 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Feb 2009 09:24:30 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 213.91.219.2 User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 =?UTF-8?Q?(Goj=C5=8D)?= APEL/10.7 Emacs/22.2 (i486-pc-linux-gnu) MULE/5.0 (SAKAKI) X-Jabber-ID: doganov@jabber.minus273.org X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 10 Feb 2009 04:43:36 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:25112 Archived-At: Tags: patch This change 2008-10-30 Emanuele Giaquinta * configure.in: Check fontconfig always. causes unnecessary linking with libfontconfig when configured --without-x or --with-ns: $ ldd -u -r src/emacs Unused direct dependencies: =09 /usr/lib/libfontconfig.so.1 For Emacs.app, it can't be even removed with -Wl,--as-needed since user-defined LDFLAGS do not propagate to the link rule (yet). A straightforward solution seems to be the following: 2009-02-10 Yavor Doganov (tiny change) * configure.in: Check for fontconfig only if HAVE_X11=3Dyes. --- configure.in 10 =D1=84=D0=B5=D0=B2 2009 09:37:08 +0200 1.585 +++ configure.in 10 =D1=84=D0=B5=D0=B2 2009 11:16:38 +0200=09 @@ -1825,7 +1825,9 @@ fi =20 ### Start of font-backend section. -PKG_CHECK_MODULES(FONTCONFIG, fontconfig >=3D 2.2.0, HAVE_FC=3Dyes, HAVE_F= C=3Dno) +if test "${HAVE_X11}" =3D yes; then + PKG_CHECK_MODULES(FONTCONFIG, fontconfig >=3D 2.2.0, HAVE_FC=3Dyes, HAVE= _FC=3Dno) +fi test "${HAVE_FC}" =3D "no" && with_freetype=3Dno =20 ## Use -lXft if available, unless `--with-freetype=3Dno' nor `--with-xft= =3Dno'.