[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freetype] freetype-config fixes
From: |
Ian Britten |
Subject: |
Re: [Freetype] freetype-config fixes |
Date: |
Tue, 19 Mar 2002 07:52:43 -0400 |
On Tue, 19 Mar 2002 07:58:56 +0100 (CET)
Werner LEMBERG <address@hidden> wrote:
> > I think I see the problem here. Looking at the script, it does:
> > libs="-lfreetype"
> > if test "${exec_prefix}/lib" != "/usr/lib" ; then
> > echo -L${exec_prefix}/lib $libs
> > else
> > echo $libs
> > fi
> >
> > Note that it won't print out -L/usr/lib.
>
> Yes, this is correct. Where is the problem?
As I mentioned in my original message, there is *another* libfreetype.so
It is part of XFree86, and if you aren't aware of this, you (may) end up
getting linker errors, because it is an old version (pre-2.0.6, I think).
% rpm -qf /usr/X11R6/lib/libfreetype.so.6.2
XFree86-libs-4.2.0-6mdk
% rpm -qf /usr/X11R6/lib/modules/fonts/libfreetype.a
XFree86-server-4.2.0-6mdk
If you have -L/usr/X11R6/lib in your link path (as is typical), and you
*don't* have -L/usr/lib (and, have it before the other one), then you
will never get the correct version of freetype.
(Actually, even if/when freetype-config prints out -L/usr/lib, you'll
still need to ensure you list it before other configs on your link line,
such as gtk-config, etc, as these may end up listing -L/usr/X11R6/lib)
Ian