summaryrefslogtreecommitdiff
path: root/elements/gnu-toolchain/ccache.bst
blob: 7e4354767bec6d8984055639fb772bb98b7ab6e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
kind: autotools

sources:
- kind: git
  url: upstream:ccache
  track: baserock/gnu-toolchain
  ref: 567631456f0899cdf0c382f898d38aadc8901d32

depends:
- filename: gnu-toolchain/stage2.bst
  type: build
- gnu-toolchain/fhs-dirs.bst
- gnu-toolchain/glibc.bst
- gnu-toolchain/zlib.bst

environment:
  PATH: /usr/bin:/bin:/usr/sbin:/sbin:/tools/bin:/tools/sbin

config:
  configure-commands:
  - ./configure --prefix="%{prefix}"
  install-commands:
  - make DESTDIR="%{install-root}" install
  - mkdir -p "%{install-root}%{prefix}/lib/ccache"
  - for cc in gcc cc g++ c++; do ln -sf "%{prefix}/bin/ccache" "%{install-root}%{prefix}/lib/ccache/$cc";
    done
  - for cc in gcc cc g++ c++; do ln -sf "%{prefix}/bin/ccache" "%{install-root}%{prefix}/lib/ccache/%{target}-$cc";
    done

  strip-commands:
  - |
    %{stage3-strip-binaries}