aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfeld <feld@FreeBSD.org>2017-08-16 08:07:58 +0800
committerfeld <feld@FreeBSD.org>2017-08-16 08:07:58 +0800
commita30067c6c4dc26647e14453daab30fecf295b3a4 (patch)
tree24946fd655910de1c6ef18788e83f6bacb8808d8
parent6f3e3e1ef1ff2b35401da283bf6e0ab7ea4c66cf (diff)
downloadfreebsd-ports-a30067c6c4dc26647e14453daab30fecf295b3a4.tar.gz
freebsd-ports-a30067c6c4dc26647e14453daab30fecf295b3a4.tar.zst
freebsd-ports-a30067c6c4dc26647e14453daab30fecf295b3a4.zip
MFH: r447942
irc/weechat: Depend on libunwind for RUBY - Ruby on amd64/i386 uses libunwind causing weechat to link it as well Reported by: koobs Approved by: port-secteam (with hat)
-rw-r--r--irc/weechat/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/irc/weechat/Makefile b/irc/weechat/Makefile
index 6622148de730..fefc5880b6b4 100644
--- a/irc/weechat/Makefile
+++ b/irc/weechat/Makefile
@@ -97,6 +97,10 @@ CMAKE_ARGS+= -DENABLE_PYTHON3:BOOL=true \
-DPYTHON_LIBRARY:FILEPATH=${LOCALBASE}/lib/libpython${PYTHON_VER}m.so
.endif
+.if !empty(PORT_OPTIONS:MRUBY) && (${ARCH} == "amd64" || ${ARCH} == "i386")
+LIB_DEPENDS+= libunwind.so:devel/libunwind
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|$${LIBDIR}/../pkgconfig|$${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig|' \
${WRKSRC}/CMakeLists.txt