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