From 29be42658c3bbf8d0f06298f8d2c94bd443ce6c3 Mon Sep 17 00:00:00 2001 From: bf Date: Fri, 9 Sep 2011 19:26:00 +0000 Subject: fix linking in the WITH_TCMALLOC case without changing the default search path for all libraries, to try to prevent any additional problems --- security/tor/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'security/tor') 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 \ -- cgit