diff options
Diffstat (limited to 'lang')
-rw-r--r-- | lang/libLLVM/hacks.mk | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/libLLVM/hacks.mk b/lang/libLLVM/hacks.mk new file mode 100644 index 00000000000..7da33b9322b --- /dev/null +++ b/lang/libLLVM/hacks.mk @@ -0,0 +1,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 |