diff options
author | Ilya Basin | 2018-03-28 14:14:37 +0300 |
---|---|---|
committer | Ilya Basin | 2018-03-28 14:14:37 +0300 |
commit | 710114ad2811d50b53136d049794852ab97519cf (patch) | |
tree | ed74f4b1594cb0cf9188fe86b89e310693263cfd /PKGBUILD | |
parent | d67a0343111806c2e92484fa05e04109e56bb3da (diff) | |
download | aur-710114ad2811d50b53136d049794852ab97519cf.tar.gz |
cross ccache
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 \ |