diff options
Diffstat (limited to 'lang/llvm/Makefile')
-rw-r--r-- | lang/llvm/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lang/llvm/Makefile b/lang/llvm/Makefile index 566f10257bb..1e0efdc01c1 100644 --- a/lang/llvm/Makefile +++ b/lang/llvm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.65 2021/07/19 13:55:37 jperkin Exp $ +# $NetBSD: Makefile,v 1.66 2021/07/19 16:18:48 tnn Exp $ # # when updating this, please also update: # devel/include-what-you-use @@ -102,6 +102,12 @@ PLIST_SUBST+= SOEXT=${SOEXT} CXXFLAGS+= -march=i586 .endif +.if !empty(MACHINE_ARCH:Mpowerpc*) +# Needed to avoid "relocation truncated to fit: R_PPC_REL24" +CFLAGS+= -mlongcall +CXXFLAGS+= -mlongcall +.endif + .include "options.mk" # replacing config.guess is required even for cmake. |