diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/sendmail/Makefile.common | 3 | ||||
-rw-r--r-- | mail/sendmail/files/site.config.m4-fpic | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/mail/sendmail/Makefile.common b/mail/sendmail/Makefile.common index 3439dc75532..b930ca1a3da 100644 --- a/mail/sendmail/Makefile.common +++ b/mail/sendmail/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.63 2015/07/11 10:08:32 jnemeth Exp $ +# $NetBSD: Makefile.common,v 1.64 2016/05/20 12:11:39 jperkin Exp $ # # used by mail/libmilter/Makefile # used by mail/sendmail/Makefile @@ -60,6 +60,7 @@ make-sendmail-siteconfig: ${CAT} ${FILESDIR}/site.config.m4-milter >>${SITECONFIG} .if ${OPSYS} == "SunOS" + ${CAT} ${FILESDIR}/site.config.m4-fpic >>${SITECONFIG} ${CAT} ${FILESDIR}/site.config.m4-libresolv >>${SITECONFIG} . if exists(/usr/include/stdbool.h) ${CAT} ${FILESDIR}/site.config.m4-stdbool >>${SITECONFIG} diff --git a/mail/sendmail/files/site.config.m4-fpic b/mail/sendmail/files/site.config.m4-fpic new file mode 100644 index 00000000000..ca85047cb7f --- /dev/null +++ b/mail/sendmail/files/site.config.m4-fpic @@ -0,0 +1,4 @@ +# $NetBSD: site.config.m4-fpic,v 1.1 2016/05/20 12:11:39 jperkin Exp $ + +# Build with -fPIC on SunOS to ensure third parties can pull in libmilter.a +APPENDDEF(`confCCOPTS', `-fPIC') |