diff options
author | Vsevolod Stakhov <vsevolod@FreeBSD.org> | 2014-07-07 10:39:30 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@FreeBSD.org> | 2014-07-07 10:39:30 +0000 |
commit | 592081e41bd91b330b8a69556d601e83cf044962 (patch) | |
tree | 96837fd4844763bff5d5bb84aeb9c6436bbe0921 /mail | |
parent | 09efa720826020c88d95ad311c12f9d3e3cf4d94 (diff) | |
download | ports-592081e41bd91b330b8a69556d601e83cf044962.tar.gz ports-592081e41bd91b330b8a69556d601e83cf044962.zip |
- Enable compiler flags responsive for exporting symbols to the elf file.
This is specifically important for DSO modules enabled in exim by default.
Without these flags modules were unable to use exim's API that has made this
feature completely unusable. [1]
- Fix minor issue with strip command by passing STRIP_CMD in the MAKE_ENV
- Bump portrevision
Submitted by: Victor Ustugov <victor at corvax.kiev.ua>
Notes
Notes:
svn path=/head/; revision=361050
Diffstat (limited to 'mail')
-rw-r--r-- | mail/exim/Makefile | 9 | ||||
-rw-r--r-- | mail/exim/files/patch-src::EDITME | 2 |
2 files changed, 7 insertions, 4 deletions
diff --git a/mail/exim/Makefile b/mail/exim/Makefile index b9085958d8ec..4be6a04fe96a 100644 --- a/mail/exim/Makefile +++ b/mail/exim/Makefile @@ -3,7 +3,7 @@ PORTNAME= exim PORTVERSION?= ${EXIM_VERSION} -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= mail ipv6 MASTER_SITES= ${MASTER_SITE_EXIM:S/$/:exim/} MASTER_SITE_SUBDIR= exim4/:exim @@ -130,7 +130,7 @@ PORT_EXAMPLES= convert4r3 convert4r4 transport-filter.pl DAILY_SCRIPTS= 150.exim-tidydb 460.exim-mail-rejects -MAKE_ENV+= OSTYPE="${OPSYS}" ARCHTYPE="${ARCH}" DUMMY_LDFLAGS="${DUMMY_LDFLAGS}" +MAKE_ENV+= OSTYPE="${OPSYS}" ARCHTYPE="${ARCH}" DUMMY_LDFLAGS="${DUMMY_LDFLAGS}" STRIP_COMMAND="${STRIP_CMD}" EXIM_USER?= mailnull EXIM_GROUP?= mail @@ -148,6 +148,8 @@ LOG_FILE_PATH?= ${LOGDIR}/%slog CONFIG_FILE_PATH?= ${PREFIX}/etc/exim/configure ALT_CONFIG_PREFIX?= ${PREFIX}/etc/exim/ +EXIM_DYNAMIC_LDFLAGS= -fPIC -rdynamic -export-dynamic + SED_SCRIPT= -e 's,%%PREFIX%%,${PREFIX},g' \ -e 's,%%DOCSDIR%%,${DOCSDIR},g' \ -e 's,%%EXAMPLESDIR%%,${EXAMPLESDIR},g' \ @@ -163,7 +165,8 @@ SEDLIST+= -e 's,XX_CFLAGS_XX,${CFLAGS:S/,/\\,/g},' \ -e 's,XX_ALT_CONFIG_PREFIX_XX,${ALT_CONFIG_PREFIX:S/,/\\,/g},' \ -e 's,XX_EXIM_USER_XX,${EXIM_USER:S/,/\\,/g},' \ -e 's,XX_EXIM_GROUP_XX,${EXIM_GROUP:S/,/\\,/g},' \ - -e 's,XX_DEFAULT_CHARSET_XX,${WITH_DEFAULT_CHARSET:S/,/\\,/g},' + -e 's,XX_DEFAULT_CHARSET_XX,${WITH_DEFAULT_CHARSET:S/,/\\,/g},' \ + -e 's,XX_DYNAMIC_LDFLAGS_XX,${EXIM_DYNAMIC_LDFLAGS:S/,/\\,/g},' PLIST_SUB+= EXIM_VERSION="${EXIM_VERSION}-${PORTREVISION}" \ EXIM_USER=${EXIM_USER} \ diff --git a/mail/exim/files/patch-src::EDITME b/mail/exim/files/patch-src::EDITME index 1a0fcb3a3c30..1725c6839eff 100644 --- a/mail/exim/files/patch-src::EDITME +++ b/mail/exim/files/patch-src::EDITME @@ -123,7 +123,7 @@ # but of course there may need to be other things in CFLAGS and EXTRALIBS_EXIM # as well. +CFLAGS=XX_CFLAGS_XX XX_SPF_FLAGS_XX XX_SRS_FLAGS_XX XX_SQLITE_FLAGS_XX -+EXTRALIBS=XX_TCP_WRAPPERS_LIBS_XX XX_PAM_LIBS_XX XX_ICONV_LIBS_XX XX_SPF_LIBS_XX XX_SRS_LIBS_XX XX_RADIUS_LIBS_XX XX_SQLITE_LIBS_XX XX_DMARC_LIBS_XX XX_REDIS_LIBS_XX ++EXTRALIBS=XX_TCP_WRAPPERS_LIBS_XX XX_PAM_LIBS_XX XX_ICONV_LIBS_XX XX_SPF_LIBS_XX XX_SRS_LIBS_XX XX_RADIUS_LIBS_XX XX_SQLITE_LIBS_XX XX_DMARC_LIBS_XX XX_REDIS_LIBS_XX XX_DYNAMIC_LDFLAGS_XX # # To use a name other than exim in the tcpwrappers config file, # e.g. if you're running multiple daemons with different access lists, |