summaryrefslogtreecommitdiff
path: root/lang/libLLVM/hacks.mk
blob: eb4d49789cbcd6b5696649825b43884eabc78dc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# $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