Re: libtool finds the wrong freetype?

2003-10-23 Thread Lars Clausen
Bob Friesenhahn wrote:

On Wed, 22 Oct 2003, Lars Clausen wrote:
 

I'm trying to compile Dia on a (fairly old) RedHat machine, and I'm
running into a problem with libtool apparently not finding the right
libfreetype.  I have most of the required libraries installing in $HOME
   

Make sure that this problem is not due to a non-libtool issue.  I
believe that any 'pkg-config' support for FreeType is a relatively
recent event.  The traditional approach is obtain configuration
parameters from a 'freetype-config' script.  The 'freetype-config'
script used will depend on the ordering of your PATH.
Yes it is (and much awaited!), but I did use the freetype-config, and 
checked that it was the right one.

Also, LD_LIBRARY_PATH is not a configure option.  You should be using
LDFLAGS to tell configure where to search for libraries.
LD_LIBRARY_PATH has to do with locating libraries at run-time rather
than at link-time.
 

That was it, thank you! I'll make sure to add it to the Dia docs.

Too bad this box is hosed Pango-wise and crashes any use of it;(

-Lars





___
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool


Re: libtool finds the wrong freetype?

2003-10-22 Thread Albert Chin
On Wed, Oct 22, 2003 at 10:11:34PM +0900, Peter O'Gorman wrote:
 Lars Clausen wrote:
 It should find libfreetype in $HOME/lib, it's been first in the 
 LD_LIBRARY_PATH for the entire installation, and pkg-config points to 
 there.  Running strace it appears that libtool looks for 
 '../lib/libfreetype.la', but since this is run in the subdirectory 
 'app', it doesn't find it.  It then proceeds to find it in /usr/lib, 
 which unfortunately is a different libfreetype.  ltmain.sh says that the 
 version is 1.5.0a.  I've been looking around for references to 
 /usr/lib/libfreetype in the local .la files, but with no luck.
 
 Any ideas on how to proceed from here?
 
 Does this patch from Ben Reed help?
 http://mail.gnu.org/archive/html/libtool-patches/2003-06/msg2.html

Or this one:
  http://mail.gnu.org/archive/html/libtool/2003-10/msg00067.html

-- 
albert chin ([EMAIL PROTECTED])


___
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool