Only enable LTO when using clang since it isn't available on GCC.

Fixes build on sparc64
This commit is contained in:
kmos 2022-09-19 20:11:41 +00:00
parent 6e2aed95ed
commit 747935a27e
1 changed files with 6 additions and 2 deletions

View File

@ -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 <bsd.port.arch.mk>
.if ${PROPERTIES:Mclang}
CONFIGURE_ARGS += -DIGRAPH_ENABLE_LTO=ON
.endif
DEBUG_PACKAGES = ${BUILD_PACKAGES}
.include <bsd.port.mk>