b30a3c
diff -ur prelude-lml-1.0.0rc1.orig/configure prelude-lml-1.0.0rc1/configure
b30a3c
--- prelude-lml-1.0.0rc1.orig/configure	2010-01-30 09:43:34.000000000 -0500
b30a3c
+++ prelude-lml-1.0.0rc1/configure	2010-01-30 09:45:42.000000000 -0500
b30a3c
@@ -45763,7 +45763,7 @@
439b45
     #AC_LANG_PUSH([C])
439b45
 
439b45
     save_LDFLAGS="$LDFLAGS"
439b45
-    LDFLAGS="$LDFLAGS -z now"
439b45
+    LDFLAGS="$LDFLAGS -z now -pie"
439b45
     cat >conftest.$ac_ext <<_ACEOF
439b45
 
439b45
       /* confdefs.h.  */
b30a3c
diff -ur prelude-lml-1.0.0rc1.orig/plugins/pcre/Makefile.in prelude-lml-1.0.0rc1/plugins/pcre/Makefile.in
b30a3c
--- prelude-lml-1.0.0rc1.orig/plugins/pcre/Makefile.in	2010-01-30 09:43:34.000000000 -0500
b30a3c
+++ prelude-lml-1.0.0rc1/plugins/pcre/Makefile.in	2010-01-30 09:45:42.000000000 -0500
b30a3c
@@ -249,7 +249,7 @@
439b45
 BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
439b45
 CC = @CC@
439b45
 CCDEPMODE = @CCDEPMODE@
439b45
-CFLAGS = @CFLAGS@
439b45
+CFLAGS = @CFLAGS@ -fPIC
439b45
 CPP = @CPP@
439b45
 CPPFLAGS = @CPPFLAGS@
439b45
 CXX = @CXX@
b30a3c
diff -ur prelude-lml-1.0.0rc1.orig/src/Makefile.in prelude-lml-1.0.0rc1/src/Makefile.in
b30a3c
--- prelude-lml-1.0.0rc1.orig/src/Makefile.in	2010-01-30 09:43:34.000000000 -0500
b30a3c
+++ prelude-lml-1.0.0rc1/src/Makefile.in	2010-01-30 09:46:37.000000000 -0500
b30a3c
@@ -905,7 +905,7 @@
05427c
 top_srcdir = @top_srcdir@
439b45
 SUBDIRS = include
b30a3c
 AM_CPPFLAGS = -I$(srcdir)/include/ -I$(top_srcdir)/libmissing -I$(top_builddir)/libmissing -I$(top_srcdir)/libev @LIBPRELUDE_CFLAGS@ @PCRE_CFLAGS@ @ICU_CPPFLAGS@
439b45
-AM_CFLAGS = @GLOBAL_CFLAGS@
439b45
+AM_CFLAGS = @GLOBAL_CFLAGS@ -fPIE -DPIE
b30a3c
 prelude_lml_LDADD = @LIBPRELUDE_LIBS@ @PCRE_LIBS@ @ICU_LIBS@ $(top_builddir)/libev/libev.la $(top_builddir)/libmissing/libmissing.la $(GETADDRINFO_LIB) $(HOSTENT_LIB) $(INET_NTOP_LIB) $(LIBSOCKET) $(LTLIBICONV) $(LTLIBINTL) $(SERVENT_LIB)
3284fc
 prelude_lml_LDFLAGS = @LIBPRELUDE_LDFLAGS@ -export-dynamic \
439b45
         "-dlopen" $(top_builddir)/plugins/debug/debug.la \