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