|
|
83aa9f2 |
diff -ur prelude-manager-1.0.1.orig/configure prelude-manager-1.0.1/configure
|
|
|
83aa9f2 |
--- prelude-manager-1.0.1.orig/configure 2011-03-24 14:06:38.000000000 -0400
|
|
|
83aa9f2 |
+++ prelude-manager-1.0.1/configure 2011-03-24 14:08:00.000000000 -0400
|
|
|
83aa9f2 |
@@ -31131,6 +31131,8 @@
|
|
|
aae5fc7 |
|
|
|
aae5fc7 |
:
|
|
|
aae5fc7 |
LDFLAGS="$LDFLAGS -z now"
|
|
|
aae5fc7 |
+ AR_FLAGS="$AR_FLAGS"
|
|
|
aae5fc7 |
+ PRELUDE_MANAGER_CFLAGS="$PRELUDE_MANAGER_CFLAGS -fPIE -DPIE"
|
|
|
aae5fc7 |
|
|
|
aae5fc7 |
else
|
|
|
aae5fc7 |
|
|
|
83aa9f2 |
diff -ur prelude-manager-1.0.1.orig/configure.in prelude-manager-1.0.1/configure.in
|
|
|
83aa9f2 |
--- prelude-manager-1.0.1.orig/configure.in 2011-03-24 14:06:38.000000000 -0400
|
|
|
83aa9f2 |
+++ prelude-manager-1.0.1/configure.in 2011-03-24 14:08:00.000000000 -0400
|
|
|
83aa9f2 |
@@ -250,6 +250,7 @@
|
|
|
83aa9f2 |
AC_PROG_CXX
|
|
|
aae5fc7 |
AX_LD_CHECK_FLAG(-z relro, , , LDFLAGS="$LDFLAGS -z relro")
|
|
|
aae5fc7 |
AX_LD_CHECK_FLAG(-z now, , , LDFLAGS="$LDFLAGS -z now")
|
|
|
aae5fc7 |
+AX_C_CHECK_FLAG(-fPIE -DPIE, , , PRELUDE_MANAGER_CFLAGS="$PRELUDE_MANAGER_CFLAGS -fPIE -DPIE"; PRELUDE_MANAGER_LDFLAGS="-pie"; AR_FLAGS="$AR_FLAGS -fPIC")
|
|
|
aae5fc7 |
|
|
|
aae5fc7 |
for i in -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations \
|
|
|
aae5fc7 |
-Wbad-function-cast -Wcast-qual -Wcast-align -Wnested-externs -Wunused \
|
|
|
83aa9f2 |
@@ -306,6 +307,7 @@
|
|
|
aae5fc7 |
AC_SUBST(LDFLAGS)
|
|
|
aae5fc7 |
AC_SUBST(GLOBAL_CFLAGS)
|
|
|
aae5fc7 |
AC_SUBST(PRELUDE_MANAGER_CFLAGS)
|
|
|
aae5fc7 |
+AC_SUBST(PRELUDE_MANAGER_LDFLAGS)
|
|
|
aae5fc7 |
|
|
|
aae5fc7 |
AC_CONFIG_FILES([
|
|
|
aae5fc7 |
|
|
|
83aa9f2 |
diff -ur prelude-manager-1.0.1.orig/libev/Makefile.am prelude-manager-1.0.1/libev/Makefile.am
|
|
|
83aa9f2 |
--- prelude-manager-1.0.1.orig/libev/Makefile.am 2011-03-24 14:06:38.000000000 -0400
|
|
|
83aa9f2 |
+++ prelude-manager-1.0.1/libev/Makefile.am 2011-03-24 14:08:00.000000000 -0400
|
|
|
aae5fc7 |
@@ -1,4 +1,5 @@
|
|
|
aae5fc7 |
EXTRA_DIST=LICENSE Changes README ev_epoll.c ev_kqueue.c ev_poll.c ev_port.c ev_select.c ev_win32.c
|
|
|
aae5fc7 |
+AM_CFLAGS = -fPIC -DPIC
|
|
|
aae5fc7 |
noinst_HEADERS = ev.h ev_vars.h ev_wrap.h
|
|
|
aae5fc7 |
noinst_LTLIBRARIES = libev.la
|
|
|
aae5fc7 |
libev_la_SOURCES = ev.c
|
|
|
83aa9f2 |
diff -ur prelude-manager-1.0.1.orig/libev/Makefile.in prelude-manager-1.0.1/libev/Makefile.in
|
|
|
83aa9f2 |
--- prelude-manager-1.0.1.orig/libev/Makefile.in 2011-03-24 14:06:38.000000000 -0400
|
|
|
83aa9f2 |
+++ prelude-manager-1.0.1/libev/Makefile.in 2011-03-24 14:08:00.000000000 -0400
|
|
|
83aa9f2 |
@@ -180,7 +180,7 @@
|
|
|
aae5fc7 |
BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
|
|
|
aae5fc7 |
CC = @CC@
|
|
|
aae5fc7 |
CCDEPMODE = @CCDEPMODE@
|
|
|
aae5fc7 |
-CFLAGS = @CFLAGS@
|
|
|
aae5fc7 |
+CFLAGS = @CFLAGS@ -fPIC -DPIC
|
|
|
aae5fc7 |
CPP = @CPP@
|
|
|
aae5fc7 |
CPPFLAGS = @CPPFLAGS@
|
|
|
aae5fc7 |
CXX = @CXX@
|
|
|
83aa9f2 |
diff -ur prelude-manager-1.0.1.orig/src/Makefile.am prelude-manager-1.0.1/src/Makefile.am
|
|
|
83aa9f2 |
--- prelude-manager-1.0.1.orig/src/Makefile.am 2011-03-24 14:06:38.000000000 -0400
|
|
|
83aa9f2 |
+++ prelude-manager-1.0.1/src/Makefile.am 2011-03-24 14:08:00.000000000 -0400
|
|
|
83aa9f2 |
@@ -36,7 +36,7 @@
|
|
|
aae5fc7 |
-dlopen $(top_builddir)/plugins/reports/relaying/relaying.la \
|
|
|
aae5fc7 |
-dlopen $(top_builddir)/plugins/reports/smtp/smtp.la \
|
|
|
aae5fc7 |
-dlopen $(top_builddir)/plugins/reports/textmod/textmod.la \
|
|
|
aae5fc7 |
- $(DLOPENED_OBJS)
|
|
|
aae5fc7 |
+ $(DLOPENED_OBJS) -pie
|
|
|
aae5fc7 |
|
|
|
aae5fc7 |
prelude_manager_SOURCES = \
|
|
|
aae5fc7 |
bufpool.c \
|
|
|
83aa9f2 |
diff -ur prelude-manager-1.0.1.orig/src/Makefile.in prelude-manager-1.0.1/src/Makefile.in
|
|
|
83aa9f2 |
--- prelude-manager-1.0.1.orig/src/Makefile.in 2011-03-24 14:06:38.000000000 -0400
|
|
|
83aa9f2 |
+++ prelude-manager-1.0.1/src/Makefile.in 2011-03-24 14:08:00.000000000 -0400
|
|
|
83aa9f2 |
@@ -944,7 +944,7 @@
|
|
|
aae5fc7 |
-dlopen $(top_builddir)/plugins/reports/relaying/relaying.la \
|
|
|
aae5fc7 |
-dlopen $(top_builddir)/plugins/reports/smtp/smtp.la \
|
|
|
aae5fc7 |
-dlopen $(top_builddir)/plugins/reports/textmod/textmod.la \
|
|
|
aae5fc7 |
- $(DLOPENED_OBJS)
|
|
|
aae5fc7 |
+ $(DLOPENED_OBJS) -pie
|
|
|
aae5fc7 |
|
|
|
aae5fc7 |
prelude_manager_SOURCES = \
|
|
|
aae5fc7 |
bufpool.c \
|