Hi,
freetype-config only knows about -L for the library path, that won't work
on system which requires also a -Wl,-rpath
The problem is that I don't know if that would work on all systems.
Bernd
Index: freetype-config.in
===================================================================
RCS file: /CVS/xc/extras/freetype2/builds/unix/freetype-config.in,v
retrieving revision 1.1.1.4
diff -b -u -r1.1.1.4 freetype-config.in
--- freetype-config.in 15 Feb 2002 00:33:20 -0000 1.1.1.4
+++ freetype-config.in 19 Jan 2003 17:50:47 -0000
@@ -90,7 +90,7 @@
if test "$echo_libs" = "yes" ; then
libs="-lfreetype"
if test "@libdir@" != "/usr/lib" ; then
- echo -L@libdir@ $libs
+ echo -L@libdir@ -Wl,-rpath@libdir@ $libs
else
echo $libs
fi
Index: Imakefile
===================================================================
RCS file: /CVS/xc/lib/freetype2/freetype/config/Imakefile,v
retrieving revision 1.9
diff -b -u -r1.9 Imakefile
--- Imakefile 20 Jun 2002 08:26:18 -0000 1.9
+++ Imakefile 19 Jan 2003 17:52:13 -0000
@@ -28,7 +28,7 @@
freetype-config: freetype-config.in
sed -e s%@prefix@%$(PROJECTROOT)% -e s%@exec_prefix@%$(PROJECTROOT)% \
- -e s%@libdir@%$(USRLIBDIR)% -e s%@includedir@%$(INCDIR)% \
+ -e s%@libdir@%$(USRLIBDIR)%g -e s%@includedir@%$(INCDIR)% \
-e s%@ft_version@%$(FREETYPE_VERSION)% \
< freetype-config.in > $@