summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2020-09-18 18:27:33 +0000
committerbsiegert <bsiegert@pkgsrc.org>2020-09-18 18:27:33 +0000
commit1cd08b1f8e2260ce3c807b9cd3084ec6e26ff3e0 (patch)
treed7aaf7ca416958c33b939c2d94524114e6fb43c2
parent6daed74af0afbb60c06b8050877dd4e184a269ae (diff)
downloadpkgsrc-1cd08b1f8e2260ce3c807b9cd3084ec6e26ff3e0.tar.gz
Pullup ticket #6326 - requested by hepkgsrc-2020Q2
lang/libLLVM: PowerPC build fix Revisions pulled up: - lang/libLLVM/hacks.mk 1.1 --- Module Name: pkgsrc Committed By: he Date: Tue Sep 15 16:16:29 UTC 2020 Added Files: pkgsrc/lang/libLLVM: hacks.mk Log Message: On powerpc, use -mlongcall so that we don't get 24-bit relocation overflow.
-rw-r--r--lang/libLLVM/hacks.mk13
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