svn commit: r532216 - head/net-p2p/libtorrent-rasterbar
Piotr Kubaj
pkubaj at FreeBSD.org
Mon Apr 20 19:00:12 UTC 2020
Author: pkubaj
Date: Mon Apr 20 19:00:12 2020
New Revision: 532216
URL: https://svnweb.freebsd.org/changeset/ports/532216
Log:
net-p2p/libtorrent-rasterbar: fix build on powerpc head
On powerpc head, base LLVM 10 works fine, but LLVM 9 from ports crashes with segfault.
PR: 243958
Reported by: canardo909 at gmx.com
Approved by: yuri (maintainer)
Modified:
head/net-p2p/libtorrent-rasterbar/Makefile
Modified: head/net-p2p/libtorrent-rasterbar/Makefile
==============================================================================
--- head/net-p2p/libtorrent-rasterbar/Makefile Mon Apr 20 18:48:49 2020 (r532215)
+++ head/net-p2p/libtorrent-rasterbar/Makefile Mon Apr 20 19:00:12 2020 (r532216)
@@ -40,12 +40,19 @@ LOGGING_DESC= Enable logging to disk
EXAMPLES_CMAKE_BOOL= build_examples
LOGGING_CMAKE_BOOL= logging
+.include <bsd.port.options.mk>
+
+.if ${ARCH} != powerpc
# workaroud for the clang-10 compiler failure: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244830
+# on powerpc, llvm 9 crashes with segfault, while 10 works https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243958
LLVM_VER= 90
BUILD_DEPENDS+= clang${LLVM_VER}:devel/llvm${LLVM_VER}
CPP= clang-cpp${LLVM_VER}
CC= clang${LLVM_VER}
CXX= clang++${LLVM_VER}
+.else
+USES+= compiler:c++11-lang
+.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local/include|${PREFIX}/include|' \
More information about the svn-ports-head
mailing list