From 5f3d1e8e6c447876fff69c1a8b45fccc93691ccd Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 22 Oct 2018 23:45:40 +0000 Subject: user/clang: push out fixes needed for building Servo --- user/clang/APKBUILD | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'user/clang') diff --git a/user/clang/APKBUILD b/user/clang/APKBUILD index a95693351..6d2a11703 100644 --- a/user/clang/APKBUILD +++ b/user/clang/APKBUILD @@ -56,10 +56,24 @@ check() { } package() { + local _dir _file cd "$builddir"/build make DESTDIR="$pkgdir" install install -m 644 lib/libclang.a "$pkgdir"/usr/lib + + # mozilla will never be happy + mkdir -p "$pkgdir"/usr/lib/llvm$_llvmver/bin + mkdir -p "$pkgdir"/usr/lib/llvm$_llvmver/lib + for _dir in bin lib; do + pushd "$pkgdir"/usr/$_dir + for _file in *; do + [ -f $_file ] || continue + ln -s "../../../$_dir/$_file" \ + "$pkgdir"/usr/lib/llvm$_llvmver/$_dir/$_file + done + popd + done } static() { -- cgit v1.2.3-70-g09d2