summaryrefslogtreecommitdiff
path: root/system/llvm4
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-02 21:12:24 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-02 21:56:14 -0500
commit726d34dd37e808e2b56f3424e1cb5771e05fb03f (patch)
treec149754e9d641ca55c1bd5167c3df517750774ba /system/llvm4
parent039f9ac6903cc7d370268f0580e65ded1e5083b5 (diff)
downloadpackages-726d34dd37e808e2b56f3424e1cb5771e05fb03f.tar.gz
packages-726d34dd37e808e2b56f3424e1cb5771e05fb03f.tar.bz2
packages-726d34dd37e808e2b56f3424e1cb5771e05fb03f.tar.xz
packages-726d34dd37e808e2b56f3424e1cb5771e05fb03f.zip
system/llvm4: Support PPC64 properly
Diffstat (limited to 'system/llvm4')
-rw-r--r--system/llvm4/APKBUILD6
-rw-r--r--system/llvm4/musl-ppc64-elfv2.patch14
2 files changed, 18 insertions, 2 deletions
diff --git a/system/llvm4/APKBUILD b/system/llvm4/APKBUILD
index 9b98e837b..647ef6043 100644
--- a/system/llvm4/APKBUILD
+++ b/system/llvm4/APKBUILD
@@ -6,7 +6,7 @@ _pkgname=llvm
pkgver=4.0.0
_majorver=${pkgver%%.*}
pkgname=$_pkgname$_majorver
-pkgrel=5
+pkgrel=6
pkgdesc="Low Level Virtual Machine compiler system, version $_majorver"
arch="all"
options="!dbg"
@@ -22,6 +22,7 @@ source="http://llvm.org/releases/$pkgver/llvm-$pkgver.src.tar.xz
disable-FileSystemTest.CreateDir-perms-assert.patch
silent-amdgpu-test-failing.patch
fix-CheckAtomic.cmake.patch
+ musl-ppc64-elfv2.patch
"
builddir="$srcdir/$_pkgname-$pkgver.src"
@@ -251,4 +252,5 @@ f84cd65d7042e89826ba6e8d48c4c302bf4980da369d7f19a55f217e51c00ca8ed178d453df3a3ce
6d1a716e5aa24e6b9a3acf4cc11e2504b1b01abf574074e9e5617b991de87d5e4e687eb18e85e73d5e632568afe2fc357771c4c96f9e136502071991496fb78c cmake-fix-libLLVM-name.patch
49c47f125014b60d0ea7870f981a2c1708ad705793f89287ed846ee881a837a4dc0170bf467e03f2ef56177473128945287749ac80dc2d13cfabcf8b929ba58a disable-FileSystemTest.CreateDir-perms-assert.patch
97f788110abbb9e6add2e3a3d3b606dc2817ab726b74ead71241fc5433ba42d5d58e23be91a3b2444eb687c4f56a7c879bf5453e96f9785ce3541301329dda9c silent-amdgpu-test-failing.patch
-3bcfeccc1f14567f99029a131b1289290226d48855857f2eb6a251e041981a8b8b2d7965099df16ebf0a406e48130679f97235ef3f3524577413bb51cf40e613 fix-CheckAtomic.cmake.patch"
+3bcfeccc1f14567f99029a131b1289290226d48855857f2eb6a251e041981a8b8b2d7965099df16ebf0a406e48130679f97235ef3f3524577413bb51cf40e613 fix-CheckAtomic.cmake.patch
+0286362c4a144f7697cc3b9bfaaba9f0d2749f625d750ca2999532a81f7e2d1ea7ca340c17354ac994dbc410e9e482993c1864751b08c9093e60524f66d7e73e musl-ppc64-elfv2.patch"
diff --git a/system/llvm4/musl-ppc64-elfv2.patch b/system/llvm4/musl-ppc64-elfv2.patch
new file mode 100644
index 000000000..5e3021911
--- /dev/null
+++ b/system/llvm4/musl-ppc64-elfv2.patch
@@ -0,0 +1,14 @@
+--- llvm-4.0.0.src/lib/Target/PowerPC/PPCTargetMachine.cpp.old 2016-12-14 18:01:53.000000000 -0600
++++ llvm-4.0.0.src/lib/Target/PowerPC/PPCTargetMachine.cpp 2018-07-02 20:34:48.470000000 -0500
+@@ -169,7 +169,11 @@
+ case Triple::ppc64le:
+ return PPCTargetMachine::PPC_ABI_ELFv2;
+ case Triple::ppc64:
++#if defined(__linux__) && !defined(__GLIBC__)
++ return PPCTargetMachine::PPC_ABI_ELFv2;
++#else
+ return PPCTargetMachine::PPC_ABI_ELFv1;
++#endif
+ default:
+ // Fallthrough.
+ ;