Blame SOURCES/sendmail-8.15.1-dynamic.patch

95f7f3
--- sendmail-8.14.4/devtools/OS/Linux		2010-01-03 22:55:35.000000000 +0100
95f7f3
+++ sendmail-8.14.4/devtools/OS/Linux.dynamic	2010-01-03 22:59:03.000000000 +0100
95f7f3
@@ -7,7 +7,7 @@
95f7f3
 define(`confCCOPTS_SO', `-fPIC')
95f7f3
 define(`confSM_OS_HEADER', `sm_os_linux')
95f7f3
 define(`confMANROOT', `/usr/share/man/man')
95f7f3
-define(`confLIBS', `-ldl')
95f7f3
+define(`confLIBS', `-pie -ldl')
95f7f3
 define(`confEBINDIR', `/usr/sbin')
95f7f3
 APPENDDEF(`confLIBSEARCH', `crypt nsl')
95f7f3
 
95f7f3
@@ -22,19 +22,19 @@
95f7f3
 ifelse(confBLDVARIANT, `DEBUG',
95f7f3
 dnl Debug build
95f7f3
 `
95f7f3
-	define(`confOPTIMIZE',`-g -Wall')
95f7f3
+	define(`confOPTIMIZE',`-g -Wall -fpie')
95f7f3
 ',
95f7f3
 dnl Optimized build
95f7f3
 confBLDVARIANT, `OPTIMIZED',
95f7f3
 `
95f7f3
-	define(`confOPTIMIZE',`-O2')
95f7f3
+	define(`confOPTIMIZE',`-O2 -fpie')
95f7f3
 ',
95f7f3
 dnl Purify build
95f7f3
 confBLDVARIANT, `PURIFY',
95f7f3
 `
95f7f3
-	define(`confOPTIMIZE',`-g')
95f7f3
+	define(`confOPTIMIZE',`-g -fpie')
95f7f3
 ',
95f7f3
 dnl default
95f7f3
 `
95f7f3
-	define(`confOPTIMIZE',`-O2')
95f7f3
+	define(`confOPTIMIZE',`-O2 -fpie')
95f7f3
 ')
95f7f3
--- sendmail-8.14.4/libsm/Makefile.m4		2006-08-16 23:06:31.000000000 +0200
95f7f3
+++ sendmail-8.14.4/libsm/Makefile.m4.dynamic	2010-01-03 23:01:36.000000000 +0100
95f7f3
@@ -6,7 +6,7 @@
95f7f3
 define(`confREQUIRE_SM_OS_H', `true')
95f7f3
 PREPENDDEF(`confENVDEF', `confMAPDEF')
95f7f3
 bldPRODUCT_START(`library', `libsm')
95f7f3
-define(`bldSOURCES', ` assert.c debug.c errstring.c exc.c heap.c match.c rpool.c strdup.c strerror.c strl.c clrerr.c fclose.c feof.c ferror.c fflush.c fget.c fpos.c findfp.c flags.c fopen.c fprintf.c fpurge.c fput.c fread.c fscanf.c fseek.c fvwrite.c fwalk.c fwrite.c get.c makebuf.c put.c refill.c rewind.c setvbuf.c smstdio.c snprintf.c sscanf.c stdio.c strio.c ungetc.c vasprintf.c vfprintf.c vfscanf.c vprintf.c vsnprintf.c wbuf.c wsetup.c string.c stringf.c xtrap.c strto.c test.c strcasecmp.c strrevcmp.c signal.c clock.c config.c shm.c sem.c mbdb.c strexit.c cf.c ldap.c niprop.c mpeix.c memstat.c util.c inet6_ntop.c ')
95f7f3
+define(`bldSOURCES', ` assert.c debug.c errstring.c exc.c heap.c match.c rpool.c strdup.c strl.c clrerr.c fclose.c feof.c ferror.c fflush.c fget.c fpos.c findfp.c flags.c fopen.c fprintf.c fpurge.c fput.c fread.c fscanf.c fseek.c fvwrite.c fwalk.c fwrite.c get.c makebuf.c put.c refill.c rewind.c setvbuf.c smstdio.c snprintf.c sscanf.c stdio.c strio.c ungetc.c vasprintf.c vfprintf.c vfscanf.c vprintf.c vsnprintf.c wbuf.c wsetup.c string.c stringf.c xtrap.c strto.c test.c strcasecmp.c strrevcmp.c signal.c clock.c config.c shm.c sem.c mbdb.c strexit.c cf.c ldap.c niprop.c mpeix.c memstat.c util.c inet6_ntop.c ')
95f7f3
 bldPRODUCT_END
95f7f3
 dnl msg.c
95f7f3
 dnl syslogio.c