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:
parent
1c7985bc95
commit
513e121afd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=544348
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue