diff options
author | Ilya Basin | 2018-03-28 14:35:41 +0300 |
---|---|---|
committer | Ilya Basin | 2018-03-28 14:35:41 +0300 |
commit | 5efe97d12ffde72571b99f9cb40261c1c4e3ec9e (patch) | |
tree | a3665ffad0823030aa92e483bd036a2f53660193 | |
parent | 5cac35560d8082d286b42683e3885644e27fc1d8 (diff) | |
download | aur-5efe97d12ffde72571b99f9cb40261c1c4e3ec9e.tar.gz |
cross ccache
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 6 |
2 files changed, 6 insertions, 2 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Tue Mar 27 14:31:14 UTC 2018 +# Wed Mar 28 11:35:41 UTC 2018 pkgbase = aarch64-linux-gnu-glib2 pkgdesc = Low level core library pkgver = 2.56.0+7+g66948ae @@ -52,8 +52,12 @@ build() { check_option debug n && debug=yes cd glib +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 glib_cv_stack_grows=no \ glib_cv_uscore=no \ glib_cv_compliant_posix_memalign=1 \ |