aboutsummaryrefslogtreecommitdiffstats
path: root/security/tor
diff options
context:
space:
mode:
authorbf <bf@FreeBSD.org>2011-09-10 03:26:00 +0800
committerbf <bf@FreeBSD.org>2011-09-10 03:26:00 +0800
commit29be42658c3bbf8d0f06298f8d2c94bd443ce6c3 (patch)
tree9e582552d4e4df5648f810a18fb3108027f6afd1 /security/tor
parent161f69cb72584af6001363107440230890893e2c (diff)
downloadfreebsd-ports-gnome-29be42658c3bbf8d0f06298f8d2c94bd443ce6c3.tar.gz
freebsd-ports-gnome-29be42658c3bbf8d0f06298f8d2c94bd443ce6c3.tar.zst
freebsd-ports-gnome-29be42658c3bbf8d0f06298f8d2c94bd443ce6c3.zip
fix linking in the WITH_TCMALLOC case without
changing the default search path for all libraries, to try to prevent any additional problems
Diffstat (limited to 'security/tor')
-rw-r--r--security/tor/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/security/tor/Makefile b/security/tor/Makefile
index 911490b48534..cb8e47caa731 100644
--- a/security/tor/Makefile
+++ b/security/tor/Makefile
@@ -98,7 +98,6 @@ CONFIGURE_ARGS+= --disable-instrument-downloads
.if defined(WITH_TCMALLOC)
CONFIGURE_ARGS+= --with-tcmalloc
LIB_DEPENDS+= tcmalloc:${PORTSDIR}/devel/google-perftools
-LDFLAGS+= -L${LOCALBASE}/lib
.endif
.if defined(WITH_THREADS)
@@ -121,6 +120,8 @@ post-patch:
${WRKSRC}/contrib/Makefile.in
@${REINPLACE_CMD} -e '\|^install-data-am:|s|install-docDATA||' \
${WRKSRC}/doc/Makefile.in
+ @${REINPLACE_CMD} -e "s|-ltcmalloc|${LOCALBASE}/lib/libtcmalloc.so|" \
+ ${WRKSRC}/configure
post-configure:
@${FIND} -X ${WRKSRC} -type f -name Makefile | ${XARGS} ${REINPLACE_CMD} -e \