GNU bug report logs - #2266
Superfluous linking against fontconfig

Previous Next

Package: emacs;

Reported by: Yavor Doganov <yavor <at> gnu.org>

Date: Tue, 10 Feb 2009 09:30:03 UTC

Severity: normal

Tags: patch

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 2266 in the body.
You can then email your comments to 2266 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2266; Package emacs. (Tue, 10 Feb 2009 09:30:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Yavor Doganov <yavor <at> gnu.org>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 10 Feb 2009 09:30:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Yavor Doganov <yavor <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Superfluous linking against fontconfig
Date: Tue, 10 Feb 2009 11:24:18 +0200
Tags: patch

This change

2008-10-30  Emanuele Giaquinta  <emanuele.giaquinta <at> gmail.com>

	* 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:
	
	/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  <yavor <at> gnu.org>  (tiny change)

	* configure.in: Check for fontconfig only if HAVE_X11=yes.

--- configure.in	10 фев 2009 09:37:08 +0200	1.585
+++ configure.in	10 фев 2009 11:16:38 +0200	
@@ -1825,7 +1825,9 @@
 fi
 
 ### Start of font-backend section.
-PKG_CHECK_MODULES(FONTCONFIG, fontconfig >= 2.2.0, HAVE_FC=yes, HAVE_FC=no)
+if test "${HAVE_X11}" = yes; then
+  PKG_CHECK_MODULES(FONTCONFIG, fontconfig >= 2.2.0, HAVE_FC=yes, HAVE_FC=no)
+fi
 test "${HAVE_FC}" = "no" && with_freetype=no
 
 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.







Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Fri, 27 Feb 2009 22:05:05 GMT) Full text and rfc822 format available.

Notification sent to Yavor Doganov <yavor <at> gnu.org>:
bug acknowledged by developer. (Fri, 27 Feb 2009 22:05:06 GMT) Full text and rfc822 format available.

Message #10 received at 2266-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 2266-done <at> debbugs.gnu.org
Subject: Re: bug#2266: Superfluous linking against fontconfig
Date: Fri, 27 Feb 2009 16:54:06 -0500
Yavor Doganov wrote:

> 2008-10-30  Emanuele Giaquinta  <emanuele.giaquinta <at> gmail.com>
>
> 	* configure.in: Check fontconfig always.
>
> causes unnecessary linking with libfontconfig when configured
> --without-x or --with-ns:


2009-02-23  Adrian Robert  <Adrian.B.Robert <at> gmail.com>

     * configure.in (HAVE_XFT, HAVE_FREETYPE, HAVE_LIBOTF)
     (HAVE_M17N_FLT): Don't check for these unless HAVE_X11.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Sat, 28 Mar 2009 14:24:16 GMT) Full text and rfc822 format available.

This bug report was last modified 16 years and 92 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.