Tue Sep 15 16:16:29 2020 UTC ()
On powerpc, use -mlongcall so that we don't get 24-bit relocation overflow.


(he)
diff -r0 -r1.1 pkgsrc/lang/libLLVM/hacks.mk

File Added: pkgsrc/lang/libLLVM/Attic/hacks.mk
# $NetBSD: hacks.mk,v 1.1 2020/09/15 16:16:29 he Exp $

.if !defined(LIBLLVM_HACKS_MK)
LIBLLVM_HACKS_MK=	defined

# [ Tue Sep 15 07:21:13 CEST 2020 : he ]
# On NetBSD/powerpc, enable -mlongcall, to avoid relocation overflows
.if ${MACHINE_ARCH} == "powerpc"
CFLAGS+=	-mlongcall
CXXFLAGS+=	-mlongcall
.endif

.endif	# LIBLLVM_HACKS_MK