summaryrefslogtreecommitdiff
path: root/lang/libLLVM/hacks.mk
blob: 7da33b9322b8c293e9e3979cebf2ce57036635e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# $NetBSD: hacks.mk,v 1.1.2.2 2020/09/18 18:27:33 bsiegert 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