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.
This commit is contained in:
Piotr Kubaj 2020-08-07 19:56:46 +00:00
parent 1c7985bc95
commit 513e121afd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=544348

View file

@ -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