2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//makedefs postfix-2.5.6-dynamic_maps_pie.patch//makedefs
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//makedefs 2008-01-15 21:20:24.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//makedefs 2011-03-17 08:08:20.330968999 +0100
|
|
|
|
@@ -503,4 +503,5 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
STRCASE = $STRCASE
|
|
|
|
EXPORT = AUXLIBS='$AUXLIBS' CCARGS='$CCARGS' OPT='$OPT' DEBUG='$DEBUG'
|
|
|
|
WARN = $WARN
|
|
|
|
+PIE = $PIE
|
|
|
|
EOF
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/anvil/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/anvil/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/anvil/Makefile.in 2007-03-17 18:51:46.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/anvil/Makefile.in 2011-03-17 08:08:20.331969001 +0100
|
|
|
|
@@ -9,11 +9,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = anvil
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/bounce/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/bounce/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/bounce/Makefile.in 2007-03-17 18:51:45.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/bounce/Makefile.in 2011-03-17 08:08:20.350969002 +0100
|
|
|
|
@@ -16,13 +16,16 @@
|
|
|
|
SAMPLES = ../../conf/bounce.cf.default
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
all: $(PROG) ../../conf/bounce.cf.default
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
# Eliminate dependency on installed Postfix.
|
|
|
|
../../conf/bounce.cf.default: template_test.ref annotate.pl
|
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/cleanup/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/cleanup/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/cleanup/Makefile.in 2007-03-17 18:51:40.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/cleanup/Makefile.in 2011-03-17 08:08:20.331969001 +0100
|
|
|
|
@@ -20,11 +20,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libmaster.a ../../lib/libmilter.a ../../lib/libglobal.a \
|
|
|
|
../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/discard/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/discard/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/discard/Makefile.in 2007-03-17 18:51:47.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/discard/Makefile.in 2011-03-17 08:08:20.333969002 +0100
|
|
|
|
@@ -9,11 +9,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = discard
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/error/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/error/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/error/Makefile.in 2007-03-17 18:51:39.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/error/Makefile.in 2011-03-17 08:08:20.334969002 +0100
|
|
|
|
@@ -9,11 +9,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = error
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/flush/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/flush/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/flush/Makefile.in 2007-03-17 18:51:46.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/flush/Makefile.in 2011-03-17 08:08:20.334969002 +0100
|
|
|
|
@@ -9,11 +9,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = flush
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/fsstone/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/fsstone/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/fsstone/Makefile.in 2006-12-04 01:29:52.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/fsstone/Makefile.in 2011-03-17 08:08:20.335969002 +0100
|
|
|
|
@@ -9,6 +9,9 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = fsstone
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
@@ -20,7 +23,7 @@
|
2007-08-06 21:56:28 +02:00
|
|
|
cat ../../conf/makedefs.out $? >$@
|
2007-01-16 00:33:08 +01:00
|
|
|
|
|
|
|
fsstone: fsstone.o $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ fsstone.o $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ fsstone.o $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
test: $(TESTPROG)
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/local/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/local/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/local/Makefile.in 2007-04-29 16:49:29.000000000 +0200
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/local/Makefile.in 2011-03-17 08:08:20.335969002 +0100
|
|
|
|
@@ -15,11 +15,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
TESTPROG=
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/master/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/master/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/master/Makefile.in 2011-03-15 12:27:38.485920001 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/master/Makefile.in 2011-03-17 08:08:20.336969002 +0100
|
|
|
|
@@ -20,7 +20,7 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
INC_DIR = ../../include
|
|
|
|
BIN_DIR = ../../libexec
|
|
|
|
|
|
|
|
-.c.o:; $(CC) `for i in $(LIB_OBJ); do [ $$i = $@ ] && echo -fPIC; done` $(CFLAGS) -c $*.c
|
|
|
|
+.c.o:; $(CC) -fPIC $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
all: $(PROG) $(LIB)
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
@@ -30,7 +30,7 @@
|
2007-08-06 21:56:28 +02:00
|
|
|
cat ../../conf/makedefs.out $? >$@
|
2007-01-16 00:33:08 +01:00
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
test: $(TESTPROG)
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/oqmgr/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/oqmgr/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/oqmgr/Makefile.in 2007-12-08 17:02:11.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/oqmgr/Makefile.in 2011-03-17 08:08:20.336969002 +0100
|
|
|
|
@@ -15,11 +15,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = qmgr
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/pickup/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/pickup/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/pickup/Makefile.in 2007-03-17 18:51:39.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/pickup/Makefile.in 2011-03-17 08:08:20.337969002 +0100
|
|
|
|
@@ -9,11 +9,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = pickup
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/pipe/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/pipe/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/pipe/Makefile.in 2007-04-29 16:45:59.000000000 +0200
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/pipe/Makefile.in 2011-03-17 08:08:20.337969002 +0100
|
|
|
|
@@ -9,11 +9,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = pipe
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/postalias/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/postalias/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/postalias/Makefile.in 2007-12-03 19:49:08.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/postalias/Makefile.in 2011-03-17 08:08:20.338969002 +0100
|
|
|
|
@@ -9,11 +9,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = postalias
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/postcat/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/postcat/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/postcat/Makefile.in 2007-03-17 18:51:45.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/postcat/Makefile.in 2011-03-17 08:08:20.339969002 +0100
|
|
|
|
@@ -9,11 +9,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = postcat
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/postconf/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/postconf/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/postconf/Makefile.in 2007-11-30 23:47:12.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/postconf/Makefile.in 2011-03-17 08:08:20.351969002 +0100
|
|
|
|
@@ -13,11 +13,14 @@
|
|
|
|
SAMPLES = ../../conf/main.cf.default
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libxsasl.a ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
../../conf/main.cf.default: $(PROG) Makefile
|
|
|
|
rm -f $@
|
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/postdrop/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/postdrop/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/postdrop/Makefile.in 2007-03-17 18:51:45.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/postdrop/Makefile.in 2011-03-17 08:08:20.339969002 +0100
|
|
|
|
@@ -9,11 +9,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = postdrop
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/postfix/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/postfix/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/postfix/Makefile.in 2007-03-17 18:51:39.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/postfix/Makefile.in 2011-03-17 08:08:20.340969002 +0100
|
|
|
|
@@ -10,11 +10,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
TESTPROG=
|
|
|
|
PROG = postfix
|
|
|
|
LIBS = ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/postkick/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/postkick/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/postkick/Makefile.in 2007-03-17 18:51:46.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/postkick/Makefile.in 2011-03-17 08:08:20.341969002 +0100
|
|
|
|
@@ -9,11 +9,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = postkick
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/postlock/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/postlock/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/postlock/Makefile.in 2007-03-17 18:51:46.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/postlock/Makefile.in 2011-03-17 08:08:20.341969002 +0100
|
|
|
|
@@ -9,11 +9,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = postlock
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/postlog/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/postlog/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/postlog/Makefile.in 2007-03-17 18:51:46.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/postlog/Makefile.in 2011-03-17 08:08:20.341969002 +0100
|
|
|
|
@@ -10,11 +10,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
TESTPROG=
|
|
|
|
PROG = postlog
|
|
|
|
LIBS = ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/postmap/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/postmap/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/postmap/Makefile.in 2007-12-03 19:19:53.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/postmap/Makefile.in 2011-03-17 08:08:20.342969002 +0100
|
|
|
|
@@ -9,11 +9,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = postmap
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/postqueue/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/postqueue/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/postqueue/Makefile.in 2007-03-17 18:51:46.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/postqueue/Makefile.in 2011-03-17 08:08:20.343969002 +0100
|
|
|
|
@@ -9,11 +9,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = postqueue
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/postsuper/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/postsuper/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/postsuper/Makefile.in 2007-03-17 18:51:46.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/postsuper/Makefile.in 2011-03-17 08:08:20.343969002 +0100
|
|
|
|
@@ -9,11 +9,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = postsuper
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/proxymap/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/proxymap/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/proxymap/Makefile.in 2007-03-17 18:51:46.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/proxymap/Makefile.in 2011-03-17 08:08:20.344969002 +0100
|
|
|
|
@@ -9,11 +9,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = proxymap
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/qmgr/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/qmgr/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/qmgr/Makefile.in 2007-12-08 17:02:27.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/qmgr/Makefile.in 2011-03-17 08:08:20.344969002 +0100
|
|
|
|
@@ -17,11 +17,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = qmgr
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/qmqpd/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/qmqpd/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/qmqpd/Makefile.in 2007-03-17 18:51:46.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/qmqpd/Makefile.in 2011-03-17 08:08:20.345969002 +0100
|
|
|
|
@@ -9,11 +9,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = qmqpd
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libdns.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/scache/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/scache/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/scache/Makefile.in 2007-03-17 18:51:47.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/scache/Makefile.in 2011-03-17 08:08:20.345969002 +0100
|
|
|
|
@@ -9,11 +9,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = scache
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/sendmail/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/sendmail/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/sendmail/Makefile.in 2007-03-17 18:51:39.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/sendmail/Makefile.in 2011-03-17 08:08:20.346969002 +0100
|
|
|
|
@@ -9,11 +9,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = sendmail
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/showq/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/showq/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/showq/Makefile.in 2007-03-17 18:51:45.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/showq/Makefile.in 2011-03-17 08:08:20.347969002 +0100
|
|
|
|
@@ -9,11 +9,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = showq
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/smtp/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/smtp/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/smtp/Makefile.in 2008-01-15 02:09:47.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/smtp/Makefile.in 2011-03-17 08:08:20.352969002 +0100
|
|
|
|
@@ -16,11 +16,14 @@
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libmaster.a ../../lib/libtls.a ../../lib/libdns.a \
|
|
|
|
../../lib/libxsasl.a ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/smtpd/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/smtpd/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/smtpd/Makefile.in 2008-01-08 02:42:32.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/smtpd/Makefile.in 2011-03-17 08:08:20.352969002 +0100
|
|
|
|
@@ -16,11 +16,14 @@
|
|
|
|
LIBS = ../../lib/libmaster.a ../../lib/libtls.a ../../lib/libdns.a \
|
|
|
|
../../lib/libxsasl.a ../../lib/libmilter.a ../../lib/libglobal.a \
|
|
|
|
../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/smtpstone/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/smtpstone/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/smtpstone/Makefile.in 2007-07-29 18:07:32.000000000 +0200
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/smtpstone/Makefile.in 2011-03-17 08:08:20.347969002 +0100
|
|
|
|
@@ -9,6 +9,9 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
INC_DIR = ../../include
|
|
|
|
PROG = smtp-source smtp-sink qmqp-source qmqp-sink
|
|
|
|
LIBS = ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
@@ -20,16 +23,16 @@
|
2007-08-06 21:56:28 +02:00
|
|
|
cat ../../conf/makedefs.out $? >$@
|
2007-01-16 00:33:08 +01:00
|
|
|
|
|
|
|
smtp-sink: smtp-sink.o $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ smtp-sink.o $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ smtp-sink.o $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
smtp-source: smtp-source.o $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ smtp-source.o $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ smtp-source.o $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
qmqp-sink: qmqp-sink.o $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ qmqp-sink.o $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ qmqp-sink.o $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
qmqp-source: qmqp-source.o $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ qmqp-source.o $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ qmqp-source.o $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
test: $(TESTPROG)
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/spawn/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/spawn/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/spawn/Makefile.in 2007-03-17 18:51:46.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/spawn/Makefile.in 2011-03-17 08:08:20.348969002 +0100
|
|
|
|
@@ -9,11 +9,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = spawn
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/tlsmgr/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/tlsmgr/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/tlsmgr/Makefile.in 2007-12-18 17:33:53.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/tlsmgr/Makefile.in 2011-03-17 08:08:20.348969002 +0100
|
|
|
|
@@ -10,11 +10,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libmaster.a ../../lib/libtls.a ../../lib/libglobal.a \
|
|
|
|
../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/trivial-rewrite/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/trivial-rewrite/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/trivial-rewrite/Makefile.in 2007-04-22 22:15:11.000000000 +0200
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/trivial-rewrite/Makefile.in 2011-03-17 08:08:20.349969002 +0100
|
|
|
|
@@ -12,13 +12,16 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
LIB_DIR = ../../lib
|
|
|
|
INC_DIR = ../../include
|
|
|
|
BIN_DIR = ../../libexec
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
all: $(PROG) $(LIB)
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/verify/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/verify/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/verify/Makefile.in 2007-12-05 23:30:53.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/verify/Makefile.in 2011-03-17 08:08:20.349969002 +0100
|
|
|
|
@@ -9,11 +9,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
PROG = verify
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/virtual/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/virtual/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/virtual/Makefile.in 2007-03-17 18:51:46.000000000 +0100
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/virtual/Makefile.in 2011-03-17 08:08:20.350969002 +0100
|
|
|
|
@@ -9,11 +9,14 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
TESTPROG=
|
|
|
|
INC_DIR = ../../include
|
|
|
|
LIBS = ../../lib/libmaster.a ../../lib/libglobal.a ../../lib/libutil.a
|
|
|
|
+ifdef PIE
|
|
|
|
+CFLAGS += -fPIE
|
|
|
|
+endif
|
|
|
|
|
|
|
|
.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
$(PROG): $(OBJS) $(LIBS)
|
|
|
|
- $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS)
|
|
|
|
+ $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(SYSLIBS) $(PIE)
|
|
|
|
|
|
|
|
$(OBJS): ../../conf/makedefs.out
|
|
|
|
|
2013-01-10 16:05:52 +01:00
|
|
|
diff -urN postfix-2.5.6-dynamic_maps.patch//src/xsasl/Makefile.in postfix-2.5.6-dynamic_maps_pie.patch//src/xsasl/Makefile.in
|
|
|
|
--- postfix-2.5.6-dynamic_maps.patch//src/xsasl/Makefile.in 2007-05-24 18:55:36.000000000 +0200
|
|
|
|
+++ postfix-2.5.6-dynamic_maps_pie.patch//src/xsasl/Makefile.in 2011-03-17 08:08:20.353969002 +0100
|
|
|
|
@@ -18,7 +18,7 @@
|
2007-01-16 00:33:08 +01:00
|
|
|
INC_DIR = ../../include
|
|
|
|
MAKES =
|
|
|
|
|
|
|
|
-.c.o:; $(CC) $(CFLAGS) -c $*.c
|
|
|
|
+.c.o:; $(CC) -fPIC $(CFLAGS) -c $*.c
|
|
|
|
|
|
|
|
all: $(LIB)
|
|
|
|
|