06f80e
--- sendmail-8.14.4/devtools/OS/Linux		2010-01-03 22:55:35.000000000 +0100
06f80e
+++ sendmail-8.14.4/devtools/OS/Linux.dynamic	2010-01-03 22:59:03.000000000 +0100
06f80e
@@ -7,7 +7,7 @@
06f80e
 define(`confCCOPTS_SO', `-fPIC')
06f80e
 define(`confSM_OS_HEADER', `sm_os_linux')
06f80e
 define(`confMANROOT', `/usr/share/man/man')
06f80e
-define(`confLIBS', `-ldl')
06f80e
+define(`confLIBS', `-pie -ldl')
06f80e
 define(`confEBINDIR', `/usr/sbin')
06f80e
 APPENDDEF(`confLIBSEARCH', `crypt nsl')
06f80e
 
06f80e
@@ -22,19 +22,19 @@
06f80e
 ifelse(confBLDVARIANT, `DEBUG',
06f80e
 dnl Debug build
06f80e
 `
06f80e
-	define(`confOPTIMIZE',`-g -Wall')
06f80e
+	define(`confOPTIMIZE',`-g -Wall -fpie')
06f80e
 ',
06f80e
 dnl Optimized build
06f80e
 confBLDVARIANT, `OPTIMIZED',
06f80e
 `
06f80e
-	define(`confOPTIMIZE',`-O2')
06f80e
+	define(`confOPTIMIZE',`-O2 -fpie')
06f80e
 ',
06f80e
 dnl Purify build
06f80e
 confBLDVARIANT, `PURIFY',
06f80e
 `
06f80e
-	define(`confOPTIMIZE',`-g')
06f80e
+	define(`confOPTIMIZE',`-g -fpie')
06f80e
 ',
06f80e
 dnl default
06f80e
 `
06f80e
-	define(`confOPTIMIZE',`-O2')
06f80e
+	define(`confOPTIMIZE',`-O2 -fpie')
06f80e
 ')
06f80e
--- sendmail-8.14.4/libsm/Makefile.m4		2006-08-16 23:06:31.000000000 +0200
06f80e
+++ sendmail-8.14.4/libsm/Makefile.m4.dynamic	2010-01-03 23:01:36.000000000 +0100
06f80e
@@ -6,7 +6,7 @@
06f80e
 define(`confREQUIRE_SM_OS_H', `true')
06f80e
 PREPENDDEF(`confENVDEF', `confMAPDEF')
06f80e
 bldPRODUCT_START(`library', `libsm')
06f80e
-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 ')
06f80e
+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 ')
06f80e
 bldPRODUCT_END
06f80e
 dnl msg.c
06f80e
 dnl syslogio.c