CPPFLAGS='-I/usr/local/include/fontconfig' LDFLAGS='-L/usr/local/lib'
LIBS='-llibfontconfig' ../emacs-22.0.90/configure --with-x-toolkit=gtk
make then built emacs without error, and as expected, it still
segfaults. But when I run it under gdb, I still get the same
backtrace as before:
#0 0xb75748fa in strcmp () from /lib/libc.so.6
No symbol table info available.
#1 0xb7a7db45 in FcObjectToPtr () from /usr/lib/libfontconfig.so.1
No symbol table info available.
#2 0xb7a81741 in FcPatternAddWithBinding () from /usr/lib/libfontconfig.so.1
No symbol table info available.
#3 0xb7a81df8 in FcPatternAdd () from /usr/lib/libfontconfig.so.1
No symbol table info available.
#4 0xb7a81e84 in FcPatternBuild () from /usr/lib/libfontconfig.so.1
No symbol table info available.
It seems that the variable LIBS I passed to configure (following the
example in etc/INSTALL) wasn't used by make. Did I do something
wrong? How do I get emacs to use the libfontconfig I built? (I also
tried LIBS='-l/usr/local/lib/libfontconfig.so.1' but that makes
configure fail.)