Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Aug 2020 19:56:46 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r544348 - head/net-mgmt/netdata
Message-ID:  <202008071956.077JukLq068912@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008071956.077JukLq068912>