diff options
author | sat <sat@FreeBSD.org> | 2007-08-16 00:22:19 +0800 |
---|---|---|
committer | sat <sat@FreeBSD.org> | 2007-08-16 00:22:19 +0800 |
commit | 26fef8a82ceca7d39e0bdc8a71000ca613b7d7c2 (patch) | |
tree | 26a0b157b18513d30e14eb06793be020a959cb71 /net-mgmt/zabbix | |
parent | 452e2ecdb8171cfc7ce4fab2e843ce72798c1b84 (diff) | |
download | freebsd-ports-gnome-26fef8a82ceca7d39e0bdc8a71000ca613b7d7c2.tar.gz freebsd-ports-gnome-26fef8a82ceca7d39e0bdc8a71000ca613b7d7c2.tar.zst freebsd-ports-gnome-26fef8a82ceca7d39e0bdc8a71000ca613b7d7c2.zip |
- Hack around failing build when linking against threaded sqlite
PR: ports/115433
Submitted by: Andrey V. Semyonov <blonde@systemplanet.ru>
Diffstat (limited to 'net-mgmt/zabbix')
-rw-r--r-- | net-mgmt/zabbix/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net-mgmt/zabbix/Makefile b/net-mgmt/zabbix/Makefile index 7865b52e6e61..8345aca426fc 100644 --- a/net-mgmt/zabbix/Makefile +++ b/net-mgmt/zabbix/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 |