Index: Makefile.in
--- Makefile.in.orig	2009-01-14 16:17:21 +0100
+++ Makefile.in	2009-02-15 20:29:24 +0100
@@ -568,7 +568,7 @@
 # 5 or 6 files which require special rules.
 
 # -export-dynammic: Special libtool flag for later plugin loading
-src_phc_LDFLAGS = -export-dynamic
+src_phc_LDFLAGS = -static -export-dynamic
 src_phc_LDADD = @gc_lib@ $(LIBLTDL) libphc.la
 bin_SCRIPTS = src/phc_compile_plugin
 libexec_SCRIPTS = libtool
Index: src/phc_compile_plugin.in
--- src/phc_compile_plugin.in.orig	2009-01-14 15:33:38 +0100
+++ src/phc_compile_plugin.in	2009-02-15 20:29:24 +0100
@@ -33,7 +33,7 @@
 fi
 
 # Find the appropriate libtool to use
-_ORIGINAL_LIBTOOL="@libexecdir@/libtool";
+_ORIGINAL_LIBTOOL="@libexecdir@/phc/libtool";
 _LIBTOOL=$_ORIGINAL_LIBTOOL
 # If its not installed there might be a libtool in the current directory
 if [ ! -x $_LIBTOOL ]; then _LIBTOOL="./libtool"; fi
