diff options
Diffstat (limited to 'extra/ccache/build')
-rwxr-xr-x | extra/ccache/build | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/extra/ccache/build b/extra/ccache/build index 1b063cc2..d78718ae 100755 --- a/extra/ccache/build +++ b/extra/ccache/build @@ -1,18 +1,21 @@ #!/bin/sh -e -./configure \ - --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --localstatedir=/var +export DESTDIR=$1 +export LDFLAGS="$LDFLAGS -static" -make +TEST=OFF +[ "$CPT_TEST" ] && TEST=ON -install -Dm 755 ccache "$1/usr/bin/ccache" -install -Dm 644 doc/ccache.1 "$1/usr/share/man/man1/ccache.1" +cmake -B build \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DENABLE_TESTING=$TEST \ + -DZSTD_LIBRARY=/usr/lib/libzstd.a -mkdir -p "$1/usr/lib/ccache/bin" +cmake --build build +cmake --install build +mkdir -p "$1/usr/lib/ccache/bin" triplet=$(cc -dumpmachine) for link in cc gcc g++ cpp c++ "$triplet-cc" "$triplet-gcc" \ |