pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/libLLVM



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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/libLLVM/hacks.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/lang/libLLVM/hacks.mk
diff -u /dev/null pkgsrc/lang/libLLVM/hacks.mk:1.1
--- /dev/null   Tue Sep 15 16:16:29 2020
+++ pkgsrc/lang/libLLVM/hacks.mk        Tue Sep 15 16:16:29 2020
@@ -0,0 +1,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



Home | Main Index | Thread Index | Old Index