8e5b40
diff -Nur fontforge-20090224.orig/configure fontforge-20090224/configure
8e5b40
--- fontforge-20090224.orig/configure	2008-12-24 14:04:18.000000000 -0700
8e5b40
+++ fontforge-20090224/configure	2009-04-01 22:56:07.000000000 -0600
8e5b40
@@ -26670,6 +26670,7 @@
8e5b40
   else
8e5b40
     PYLIBS=""
8e5b40
   fi
8e5b40
+  PYDEFINES="$PYDEFINES, ('SOLIBDIR','\"$libdir/\"')"
8e5b40
   PY=pyhook/setup.py
8e5b40
 fi
8e5b40
 
8e5b40
diff -Nur fontforge-20090224.orig/pyhook/loadfontforge.h fontforge-20090224/pyhook/loadfontforge.h
8e5b40
--- fontforge-20090224.orig/pyhook/loadfontforge.h	2007-12-23 19:28:35.000000000 -0700
8e5b40
+++ fontforge-20090224/pyhook/loadfontforge.h	2009-04-01 22:49:08.000000000 -0600
8e5b40
@@ -11,7 +11,7 @@
8e5b40
 
8e5b40
     if ( (lib = dlopen("libgunicode" SO_EXT,RTLD_LAZY))==NULL ) {
8e5b40
 #ifdef PREFIX
8e5b40
-	lib = dlopen( PREFIX "/lib/" "libgunicode" SO_EXT,RTLD_LAZY);
8e5b40
+	lib = dlopen( SOLIBDIR "libgunicode.so.3" ,RTLD_LAZY);
8e5b40
 #endif
8e5b40
     }
8e5b40
     if ( lib==NULL ) {
8e5b40
@@ -21,7 +21,7 @@
8e5b40
 
8e5b40
     if ( (lib = dlopen("libgutils" SO_EXT,RTLD_LAZY))==NULL ) {
8e5b40
 #ifdef PREFIX
8e5b40
-	lib = dlopen( PREFIX "/lib/" "libgutils" SO_EXT,RTLD_LAZY);
8e5b40
+	lib = dlopen( SOLIBDIR "libgutils.so.1" ,RTLD_LAZY);
8e5b40
 #endif
8e5b40
     }
8e5b40
     if ( lib==NULL ) {
8e5b40
@@ -31,7 +31,7 @@
8e5b40
 
8e5b40
     if ( (lib = dlopen("libfontforge" SO_EXT,RTLD_LAZY))==NULL ) {
8e5b40
 #ifdef PREFIX
8e5b40
-	lib = dlopen( PREFIX "/lib/" "libfontforge" SO_EXT,RTLD_LAZY);
306ddd
+	lib = dlopen( SOLIBDIR "libfontforge.so.1" ,RTLD_LAZY);
8e5b40
 #endif
8e5b40
     }
8e5b40
     if ( lib==NULL ) {