summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuchesar V. ILIEV2016-02-27 16:48:52 +0200
committerLuchesar V. ILIEV2016-02-27 16:49:58 +0200
commitbf0d273481d8fcf7ec471fa032fae9e7629bf5b1 (patch)
tree951ab34229d4f307292aca9c64a5c92a60b3f257
parentbee3be15c24fa26d5d50dcd525ca5f36458e3336 (diff)
downloadaur-bf0d273481d8fcf7ec471fa032fae9e7629bf5b1.tar.gz
Fix for r262066: lto.h in libs pkg
-rw-r--r--PKGBUILD3
1 files changed, 3 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3e35c1e1309a..6bfdda9dcaf2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -251,6 +251,9 @@ package_llvm-libs-svn() {
install -m755 -d "${pkgdir}/usr/lib/bfd-plugins"
ln -s {/usr/lib,"${pkgdir}/usr/lib/bfd-plugins"}/LLVMgold.so
+ # Since r262066 lto.h is also installed, but we don't need it in the -libs package.
+ rm -rf "${pkgdir}/usr/include"
+
# Must have a symlink that corresponds to the output of `llvm-config --version`.
# Without it, some builds, e.g. Mesa, might fail for "lack of shared libraries".
_sover="$(echo ${pkgver} | cut -d . -f -2)svn"