From 747935a27e11bb319048502d0034ec9240fddac1 Mon Sep 17 00:00:00 2001 From: kmos Date: Mon, 19 Sep 2022 20:11:41 +0000 Subject: [PATCH] Only enable LTO when using clang since it isn't available on GCC. Fixes build on sparc64 --- math/igraph/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/math/igraph/Makefile b/math/igraph/Makefile index d7fbe4877b3..d0a0c82a761 100644 --- a/math/igraph/Makefile +++ b/math/igraph/Makefile @@ -30,8 +30,12 @@ LIB_DEPENDS = devel/glpk \ # those are only needed to regenerate parsers in the development version # The release tarball doesn't even ship those .y/.l files CONFIGURE_ARGS += -DBUILD_SHARED_LIBS=ON \ - -DIGRAPH_ENABLE_TLS=ON \ - -DIGRAPH_ENABLE_LTO=ON + -DIGRAPH_ENABLE_TLS=ON + +.include +.if ${PROPERTIES:Mclang} +CONFIGURE_ARGS += -DIGRAPH_ENABLE_LTO=ON +.endif DEBUG_PACKAGES = ${BUILD_PACKAGES} .include