forked from kiss-community/repo
ccache: 4.0
This commit is contained in:
parent
08a65b805d
commit
1bb480ad71
|
@ -1,21 +1,27 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
./configure \
|
export DESTDIR="$1"
|
||||||
--prefix=/usr \
|
export CFLAGS="$CFLAGS -static"
|
||||||
--sysconfdir=/etc \
|
export CXXFLAGS="$CXXFLAGS -static"
|
||||||
--mandir=/usr/share/man \
|
|
||||||
--localstatedir=/var
|
|
||||||
|
|
||||||
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"
|
cmake --build build
|
||||||
install -Dm 644 doc/ccache.1 "$1/usr/share/man/man1/ccache.1"
|
cmake --install build
|
||||||
|
|
||||||
mkdir -p "$1/usr/lib/ccache/bin"
|
mkdir -p "$1/usr/lib/ccache/bin"
|
||||||
|
|
||||||
host=$(cc -dumpmachine)
|
host=$(cc -dumpmachine)
|
||||||
|
|
||||||
for link in cc gcc g++ cpp c++ \
|
for link in \
|
||||||
"$host-cc" "$host-gcc" "$host-g++" "$host-cpp" "$host-c++"; do
|
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"
|
ln -sf /usr/bin/ccache "$1/usr/lib/ccache/bin/$link"
|
||||||
done
|
done
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
a02f4e8360dc6618bc494ca35b0ae21cea080f804a4898eab1ad3fcd108eb400
|
ac1b82fe0a5e39905945c4d68fcb24bd0f32344869faf647a1b8d31e544dcb88
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
zlib
|
zstd make
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
3.7.12 1
|
4.0 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user