summaryrefslogtreecommitdiff
path: root/elements/gnu-toolchain/ccache.bst
diff options
context:
space:
mode:
Diffstat (limited to 'elements/gnu-toolchain/ccache.bst')
-rw-r--r--elements/gnu-toolchain/ccache.bst28
1 files changed, 28 insertions, 0 deletions
diff --git a/elements/gnu-toolchain/ccache.bst b/elements/gnu-toolchain/ccache.bst
new file mode 100644
index 00000000..f66a37ca
--- /dev/null
+++ b/elements/gnu-toolchain/ccache.bst
@@ -0,0 +1,28 @@
+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