svn commit: r544348 - head/net-mgmt/netdata
Piotr Kubaj
pkubaj at FreeBSD.org
Fri Aug 7 19:56:47 UTC 2020
Author: pkubaj
Date: Fri Aug 7 19:56:46 2020
New Revision: 544348
URL: https://svnweb.freebsd.org/changeset/ports/544348
Log:
net-mgmt/netdata: fix build on powerpc64 elfv2 with LTO
Configure crashes when building with LTO and Clang, use GCC:
checking if -flto builds executables... Segmentation fault (core dumped)
no
configure: error: LTO is required but is not available.
Modified:
head/net-mgmt/netdata/Makefile
Modified: head/net-mgmt/netdata/Makefile
==============================================================================
--- head/net-mgmt/netdata/Makefile Fri Aug 7 19:39:00 2020 (r544347)
+++ head/net-mgmt/netdata/Makefile Fri Aug 7 19:56:46 2020 (r544348)
@@ -87,6 +87,10 @@ LTO_USES= compiler:c11
BROKEN= Link-Time Optimization breaks compilation on FreeBSD 11
.endif
+.if ${PORT_OPTIONS:MLTO} && ${ARCH} == powerpc64
+USE_GCC= yes
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|%%NETDATA_CACHE%%|${NETDATA_CACHE}|g' \
${PATCH_WRKSRC}/configure.ac
More information about the svn-ports-head
mailing list