summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorIlya Basin2018-03-28 14:14:37 +0300
committerIlya Basin2018-03-28 14:14:37 +0300
commit710114ad2811d50b53136d049794852ab97519cf (patch)
treeed74f4b1594cb0cf9188fe86b89e310693263cfd /PKGBUILD
parentd67a0343111806c2e92484fa05e04109e56bb3da (diff)
downloadaur-aarch64-linux-gnu-util-linux.tar.gz
cross ccache
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3a3ec39ff39..48906c8d00a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -35,8 +35,12 @@ sha256sums=('6c7397abc764e32e8159c2e96042874a190303e77adceb4ac5bd502a272a4734'
build() {
cd "$_pkgbase-$pkgver"
+if [ n != "$RUN_PREPARE" ]; then
+ if [ 1 = "$ccache" ]; then
+ export CC=${CC:-ccache ${_target}-gcc}
+ export CXX=${CXX:-ccache ${_target}-g++}
+ fi
unset CFLAGS CXXFLAGS
-if true; then
./configure --prefix=/usr/${_target} \
--libdir=/usr/${_target}/lib \
--bindir=/usr/${_target}/bin \