aboutsummaryrefslogtreecommitdiffstats
path: root/mail/exim
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2005-04-06 22:08:31 +0800
committerkrion <krion@FreeBSD.org>2005-04-06 22:08:31 +0800
commit76c49f15f02d8baee51ab215a57528ffa1378599 (patch)
tree45abae3017cabed99e4d7bb414574228990c7e66 /mail/exim
parentb0d02508635b26fa6c1a00514647580b5a80c63e (diff)
downloadfreebsd-ports-graphics-76c49f15f02d8baee51ab215a57528ffa1378599.tar.gz
freebsd-ports-graphics-76c49f15f02d8baee51ab215a57528ffa1378599.tar.zst
freebsd-ports-graphics-76c49f15f02d8baee51ab215a57528ffa1378599.zip
Use customized DUMMY_LDFLAGS in enviroment instead of LDFLAGS to fix
run on 4.x with lang/perl5.8 and WITH_OPENSSL_PORT. Suggested by: tobez Submitted by: Patrick Eisenacher <eisenacher at s3-solutions dot de>
Diffstat (limited to 'mail/exim')
-rw-r--r--mail/exim/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/exim/Makefile b/mail/exim/Makefile
index 48665c6acef..47f5b23f9fd 100644
--- a/mail/exim/Makefile
+++ b/mail/exim/Makefile
@@ -80,7 +80,7 @@ PKGMESSAGE= ${WRKDIR}/POST-INSTALL-NOTES
PKGMESSAGE= ${WRKDIR}/pkg-message
.endif
-MAKE_ENV+= OSTYPE="${OPSYS}" ARCHTYPE="${ARCH}"
+MAKE_ENV+= OSTYPE="${OPSYS}" ARCHTYPE="${ARCH}" DUMMY_LDFLAGS="${DUMMY_LDFLAGS}"
.if defined(EXIMON_ONLY)
MAKE_ENV+= INSTALL_ARG="eximon eximon.bin"
.elif defined(WITHOUT_SUID)
@@ -547,6 +547,8 @@ WITHOUT_IPV6= yes
SEDLIST+= -e 's,^\# (HAVE_IPV6=),\1,'
.endif
+DUMMY_LDFLAGS!= ${ECHO_CMD} ${LDFLAGS} | ${SED} -e 's|-Wl,-rpath|-Wl,-DUMMYrpath|g; s|-rpath|-Wl,-rpath|g; s|-DUMMYrpath|-rpath|g'
+
pre-everything::
.if empty(.MAKEFLAGS:M-s) && defined(WITH_WISHLIST)
@${ECHO} ''
@@ -570,6 +572,7 @@ do-configure:
.endif
@[ ! -f ${PKGDIR}/pkg-install ] || ${SED} ${SED_SCRIPT} ${PKGDIR}/pkg-install > ${PKGINSTALL}
@${REINPLACE_CMD} -E ${SEDLIST} ${WRKSRC}/src/configure.default
+ @${REINPLACE_CMD} -e 's/$$(LDFLAGS)/$$(DUMMY_LDFLAGS)/' ${WRKSRC}/OS/Makefile-Base
@${REINPLACE_CMD} -e 's/"(Exim $$version_number)\\n\\t"/"(Exim $$version_number (${OPSYS}))\\n\\t"/' \
${WRKSRC}/src/globals.c
@${REINPLACE_CMD} -e 's/Exim version %s \(#%s \)\{0,1\}/&(${OPSYS} ${OSREL}) /' ${WRKSRC}/src/exim.c