summaryrefslogtreecommitdiff
path: root/net-mgmt/zabbix2
diff options
context:
space:
mode:
authorAndrew Pantyukhin <sat@FreeBSD.org>2007-08-15 16:22:19 +0000
committerAndrew Pantyukhin <sat@FreeBSD.org>2007-08-15 16:22:19 +0000
commitaa7063c8854f49a6d9b04e13771bbf1f6f030093 (patch)
tree3fe663ea69b7c233d68bcb9d4d1d0db7baa42b09 /net-mgmt/zabbix2
parentAdd yet another implementation of awale - games/awale: (diff)
- Hack around failing build when linking against threaded sqlite
PR: ports/115433 Submitted by: Andrey V. Semyonov <blonde@systemplanet.ru>
Notes
Notes: svn path=/head/; revision=197753
Diffstat (limited to 'net-mgmt/zabbix2')
-rw-r--r--net-mgmt/zabbix2/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/net-mgmt/zabbix2/Makefile b/net-mgmt/zabbix2/Makefile
index 7865b52e6e61..8345aca426fc 100644
--- a/net-mgmt/zabbix2/Makefile
+++ b/net-mgmt/zabbix2/Makefile
@@ -72,6 +72,11 @@ post-patch:
@${ECHO} 'DisablePinger=yes' >> ${WRKSRC}/misc/conf/zabbix_server.conf
.endif
+pre-configure:
+ @if ldd ${LOCALBASE}/lib/libsqlite3.so 2>&- |${GREP} -q thr;then\
+ ${REINPLACE_CMD} -e 's|-lsqlite3|-lsqlite3 ${PTHREAD_LIBS}|'\
+ ${WRKSRC}/configure; fi
+
.if ${ARCH} == "amd64"
post-configure:
${ECHO_CMD} "#define HAVE_VA_COPY 1" >> ${WRKSRC}/include/config.h