From 08d2a3c52e906ab1376c926b1feebd89009969ff Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Wed, 7 Jul 2021 18:45:32 -0400 Subject: [PATCH] ccache: copy build from wyverkiss --- ccache/build | 11 ++++++----- ccache/version | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ccache/build b/ccache/build index fdefd5d..638ebef 100755 --- a/ccache/build +++ b/ccache/build @@ -3,6 +3,7 @@ export DESTDIR="$1" export CFLAGS="$CFLAGS -static" export CXXFLAGS="$CXXFLAGS -static" +export LDFLAGS="$LDFLAGS -lc++ -lc++abi -lunwind -static" cmake -B build \ -DCMAKE_INSTALL_PREFIX=/usr \ @@ -14,13 +15,13 @@ cmake --build build cmake --install build mkdir -p "$1/usr/lib/ccache/bin" -host=$(cc -dumpmachine) for link in \ - cc "$host-cc" \ - cpp "$host-cpp" \ - c++ "$host-c++" \ - clang clang++ + cc \ + clang \ + clang++ \ + cpp \ + c++ do ln -sf /usr/bin/ccache "$1/usr/lib/ccache/bin/$link" done diff --git a/ccache/version b/ccache/version index aead541..e47357b 100644 --- a/ccache/version +++ b/ccache/version @@ -1 +1 @@ -4.3 1 +4.3 2 -- 2.39.2