diff --git a/extra/ccache/build b/extra/ccache/build index 071153ec..61738ef0 100755 --- a/extra/ccache/build +++ b/extra/ccache/build @@ -1,21 +1,27 @@ #!/bin/sh -e -./configure \ - --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --localstatedir=/var +export DESTDIR="$1" +export CFLAGS="$CFLAGS -static" +export CXXFLAGS="$CXXFLAGS -static" -make +cmake -B build \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DENABLE_TESTING=OFF \ + -DZSTD_LIBRARY=/usr/lib/libzstd.a -install -Dm 755 ccache "$1/usr/bin/ccache" -install -Dm 644 doc/ccache.1 "$1/usr/share/man/man1/ccache.1" +cmake --build build +cmake --install build mkdir -p "$1/usr/lib/ccache/bin" - host=$(cc -dumpmachine) -for link in cc gcc g++ cpp c++ \ - "$host-cc" "$host-gcc" "$host-g++" "$host-cpp" "$host-c++"; do +for link in \ + cc "$host-cc" \ + gcc "$host-gcc" \ + g++ "$host-g++" \ + cpp "$host-cpp" \ + c++ "$host-c++" +do ln -sf /usr/bin/ccache "$1/usr/lib/ccache/bin/$link" done diff --git a/extra/ccache/checksums b/extra/ccache/checksums index 23ffe0c1..1fef1982 100644 --- a/extra/ccache/checksums +++ b/extra/ccache/checksums @@ -1 +1 @@ -a02f4e8360dc6618bc494ca35b0ae21cea080f804a4898eab1ad3fcd108eb400 +ac1b82fe0a5e39905945c4d68fcb24bd0f32344869faf647a1b8d31e544dcb88 diff --git a/extra/ccache/depends b/extra/ccache/depends index f22003e8..ed9f138f 100644 --- a/extra/ccache/depends +++ b/extra/ccache/depends @@ -1 +1 @@ -zlib +zstd make diff --git a/extra/ccache/sources b/extra/ccache/sources index ae9955b5..d085dba5 100644 --- a/extra/ccache/sources +++ b/extra/ccache/sources @@ -1 +1 @@ -https://github.com/ccache/ccache/releases/download/v3.7.12/ccache-3.7.12.tar.xz +https://github.com/ccache/ccache/releases/download/v4.0/ccache-4.0.tar.xz diff --git a/extra/ccache/version b/extra/ccache/version index b7fc787d..6c899f05 100644 --- a/extra/ccache/version +++ b/extra/ccache/version @@ -1 +1 @@ -3.7.12 1 +4.0 1