From: Armaan Bhojwani Date: Wed, 7 Jul 2021 22:45:32 +0000 (-0400) Subject: ccache: copy build from wyverkiss X-Git-Tag: 2021.07.15-1~59 X-Git-Url: https://git.armaanb.net/?p=asd-repo.git;a=commitdiff_plain;h=08d2a3c52e906ab1376c926b1feebd89009969ff ccache: copy build from wyverkiss --- 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