diff options
author | jperkin <jperkin> | 2016-05-20 12:11:39 +0000 |
---|---|---|
committer | jperkin <jperkin> | 2016-05-20 12:11:39 +0000 |
commit | 3074edd120b4f35b4bb31d4cd0bd368f68de79ca (patch) | |
tree | 65058ffedb84f853cdb2dde155c3c75c3f0bfe6c | |
parent | 24779bec67e7933437dc53926aee74999ea80df3 (diff) | |
download | pkgsrc-3074edd120b4f35b4bb31d4cd0bd368f68de79ca.tar.gz |
Build with -fPIC on SunOS to ensure third parties can pull in libmilter.a
-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') |