From 831cd69790509f806bde1dffd505b98a248e5650 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Mon, 20 Jan 2014 22:40:58 +0100 Subject: [PATCH] Setup ccache symlinks on openSUSE openSUSE's ccache package doesn't include symlinks to enable ccache for gcc by default, so we set them up manually. Change-Id: I79dbe814ff2dfad8158fb1f06d68cc07eae19a41 --- elements/opensuse/install.d/01-ccache-symlinks | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 elements/opensuse/install.d/01-ccache-symlinks diff --git a/elements/opensuse/install.d/01-ccache-symlinks b/elements/opensuse/install.d/01-ccache-symlinks new file mode 100755 index 00000000..2b14c6c9 --- /dev/null +++ b/elements/opensuse/install.d/01-ccache-symlinks @@ -0,0 +1,9 @@ +#!/bin/bash +set -e + +# Setup ccache symlinks, as openSUSE's ccache package doesn't +# include them. +mkdir -p /usr/lib/ccache +for tool in cc gcc; do + ln -s /usr/bin/ccache /usr/lib/ccache/$tool +done