439b45e
diff -ur prelude-lml-0.9.12.2.orig/configure prelude-lml-0.9.12.2/configure
439b45e
--- prelude-lml-0.9.12.2.orig/configure	2008-04-24 14:08:17.000000000 -0400
439b45e
+++ prelude-lml-0.9.12.2/configure	2008-04-24 15:25:29.000000000 -0400
439b45e
@@ -33196,7 +33196,7 @@
439b45e
     #AC_LANG_PUSH([C])
439b45e
 
439b45e
     save_LDFLAGS="$LDFLAGS"
439b45e
-    LDFLAGS="$LDFLAGS -z now"
439b45e
+    LDFLAGS="$LDFLAGS -z now -pie"
439b45e
     cat >conftest.$ac_ext <<_ACEOF
439b45e
 
439b45e
       /* confdefs.h.  */
439b45e
diff -ur prelude-lml-0.9.12.2.orig/plugins/pcre/Makefile.in prelude-lml-0.9.12.2/plugins/pcre/Makefile.in
439b45e
--- prelude-lml-0.9.12.2.orig/plugins/pcre/Makefile.in	2008-04-24 14:08:17.000000000 -0400
439b45e
+++ prelude-lml-0.9.12.2/plugins/pcre/Makefile.in	2008-04-24 15:23:24.000000000 -0400
439b45e
@@ -155,7 +155,7 @@
439b45e
 BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
439b45e
 CC = @CC@
439b45e
 CCDEPMODE = @CCDEPMODE@
439b45e
-CFLAGS = @CFLAGS@
439b45e
+CFLAGS = @CFLAGS@ -fPIC
439b45e
 CPP = @CPP@
439b45e
 CPPFLAGS = @CPPFLAGS@
439b45e
 CXX = @CXX@
439b45e
diff -ur prelude-lml-0.9.12.2.orig/src/Makefile.in prelude-lml-0.9.12.2/src/Makefile.in
439b45e
--- prelude-lml-0.9.12.2.orig/src/Makefile.in	2008-04-24 14:08:17.000000000 -0400
439b45e
+++ prelude-lml-0.9.12.2/src/Makefile.in	2008-04-24 15:24:31.000000000 -0400
439b45e
@@ -489,7 +489,7 @@
439b45e
 target_vendor = @target_vendor@
439b45e
 SUBDIRS = include
439b45e
 AM_CPPFLAGS = -I$(srcdir)/include/ -I$(top_srcdir)/libmissing @LIBPRELUDE_CFLAGS@ @PCRE_CFLAGS@ @FAM_CFLAGS@
439b45e
-AM_CFLAGS = @GLOBAL_CFLAGS@
439b45e
+AM_CFLAGS = @GLOBAL_CFLAGS@ -fPIE -DPIE
439b45e
 prelude_lml_LDADD = @LIBPRELUDE_LIBS@ @PCRE_LIBS@ @FAM_LIBS@ $(top_builddir)/libmissing/libmissing.la
439b45e
 prelude_lml_LDFLAGS = @LIBPRELUDE_LDFLAGS@ @FAM_LDFLAGS@ -export-dynamic \
439b45e
         "-dlopen" $(top_builddir)/plugins/debug/debug.la \