summaryrefslogtreecommitdiff
path: root/strata/build-essential/ccache.morph
blob: e990e93af7f6c4857dfc556c5430671d106f9b2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: ccache
kind: chunk
build-system: autotools

configure-commands:
# 'dev mode' enables -Werror, which causes the build to fail at time of writing
# due to implicit-fallthrough warnings that are not fixed in 'master'.
- echo > dev_mode_disabled
- ./configure --prefix="$PREFIX"

pre-build-commands:
# Documentation requires asciidoc and can't be disabled cleanly, hence
# this hack.
- echo 'ccache man page isn't built in Baserock systems, sorry' > ccache.1

install-commands:
- make DESTDIR="$DESTDIR" install
- mkdir -p "$DESTDIR/$PREFIX/lib/ccache"
- for cc in gcc cc g++ c++; do ln -sf "$PREFIX/bin/ccache" "$DESTDIR/$PREFIX/lib/ccache/$cc";
  done
- for cc in gcc cc g++ c++; do ln -sf "$PREFIX/bin/ccache" "$DESTDIR/$PREFIX/lib/ccache/$TARGET-$cc";
  done