reassign 614823 src:emacs23
forcemerge 554324 614823
tag 554324 + patch
user ubuntu-de...@lists.ubuntu.com
usertags 554324 + origin-ubuntu natty ubuntu-patch
thanks
* The build will fail if FONTCONFIG_LIBS are stripped
  Patch: fix-ftbfs-xft-fontconfig.diff
  Author: Reinhard Tartler <siret...@tauware.de>
  Added-by: Reinhard Tartler <siret...@tauware.de>

  This makes sure that the Debian Emacs build system does not strip away
  the -lfontconfig line from the linker flags. Otherwise, on Ubuntu
  natty the following error occurs:

  gcc -nostdlib `./prefix-args -Xlinker -z nocombreloc` -g -o temacs
  pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o dispnew.o frame.o scroll.o
  xdisp.o menu.o xmenu.o window.o charset.o coding.o category.o ccl.o
  character.o chartab.o cm.o term.o terminal.o xfaces.o xterm.o xfns.o
  xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o
  xgselect.o dbusbind.o emacs.o keyboard.o macros.o keymap.o sysdep.o
  buffer.o filelock.o insdel.o marker.o minibuf.o fileio.o dired.o
  filemode.o cmds.o casetab.o casefiddle.o indent.o search.o regex.o
  undo.o alloc.o data.o doc.o editfns.o callint.o eval.o floatfns.o
  fns.o font.o print.o lread.o syntax.o unexelf.o bytecode.o process.o
  callproc.o region-cache.o sound.o atimer.o doprnt.o strftime.o
  intervals.o textprop.o composite.o md5.o xfont.o ftfont.o xftfont.o
  ftxfont.o terminfo.o lastfile.o vm-limit.o widget.o ../lwlib/liblw.a
  -lXaw3d -lXmu -lXt -lSM -lICE -lXext -ltiff -ljpeg -lpng -lz -lm -lgif
  -lXpm -lX11 -lXrender -lXft -lasound -pthread -lrsvg-2 -lgio-2.0
  -lgdk_pixbuf-2.0 -lm -lcairo -lgobject-2.0 -lgmodule-2.0 -lpng12
  -lgthread-2.0 -lrt -lglib-2.0 -L/lib -ldbus-1 -lpthread -lrt -lgpm
  -lncurses -lz -lotf -lfreetype -lm17n-flt -lm17n-core -lm -lgcc -lc
  -lgcc /usr/lib/crtn.o

  /usr/bin/ld: ftfont.o: undefined reference to symbol 'FcInit'
  /usr/bin/ld: note: 'FcInit' is defined in DSO
    /usr/lib/libfontconfig.so.1 so try adding it to the linker command
    line /usr/lib/libfontconfig.so.1: could not read symbols: Invalid
    operation
  collect2: ld returned 1 exit status

--- a/configure.in      2010-11-04 08:39:08.000000000 +0100
+++ b/configure.in      2010-11-04 09:23:30.390963434 +0100
@@ -2021,11 +2021,7 @@
     ## We used to allow building with FreeType and without Xft.
     ## However, the ftx font backend driver is not in good shape.
     if test "${HAVE_XFT}" = "yes"; then
-      dnl As we use Xft, we anyway use freetype.
-      dnl There's no need for additional CFLAGS and LIBS.
       HAVE_FREETYPE=yes
-      FONTCONFIG_CFLAGS=
-      FONTCONFIG_LIBS=
     fi
 
     HAVE_LIBOTF=no

Reply via email to