x11/kitty: fix build on riscv64 and runtime on powerpc64

Disable LTO.
On riscv64:
Hard-float 'd' ABI can't be used for a target that doesn't support the D instruction set extension (ignoring target-abi)
ld: error: lto.tmp: cannot link object files with different floating-point ABI
cc: error: linker command failed with exit code 1 (use -v to see invocation)

On powerpc64, LTO is broken with LLVM.
This commit is contained in:
Piotr Kubaj 2021-10-16 20:43:56 +00:00
parent 648efac422
commit 16c1253b4a

View file

@ -51,6 +51,12 @@ _STRIP_TARGETS= lib/kitty/kitty/fast_data_types.so lib/kitty/kitty/glfw-x11.so \
lib/kitty/kittens/choose/subseq_matcher.so bin/kitty
_EMPTY_DIRS= kittens/choose kittens/diff kittens/unicode_input kittens kitty
.include <bsd.port.options.mk>
.if ${ARCH} == powerpc64 || ${ARCH:Mriscv64*}
MAKE_ENV+= KITTY_NO_LTO=1
.endif
do-build:
(cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py linux-package --update-check-interval 0)