From 859975cea54c2b3683922e6bcc88babe8e5754d642a018655eee1affe0207c45 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 26 May 2015 08:09:52 +0000 Subject: [PATCH] Accepting request 307273 from home:mvyskocil:branches:devel:tools:building - Add the compat symlinks for gcc/g++ to libdir, so prepending libdir to PATH enabled ccache by default OBS-URL: https://build.opensuse.org/request/show/307273 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/ccache?expand=0&rev=37 --- ccache.changes | 6 ++++++ ccache.spec | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/ccache.changes b/ccache.changes index f799c0f..a79ccd2 100644 --- a/ccache.changes +++ b/ccache.changes @@ -33,6 +33,12 @@ Fri May 22 07:14:06 UTC 2015 - mpluskal@suse.com * Fixed build error when compiling ccache with recent clang versions. +------------------------------------------------------------------- +Fri May 15 10:08:14 UTC 2015 - mvyskocil@opensuse.org + +- Add the compat symlinks for gcc/g++ to libdir, so prepending + libdir to PATH enabled ccache by default + ------------------------------------------------------------------- Fri Feb 20 18:12:09 UTC 2015 - mpluskal@suse.com diff --git a/ccache.spec b/ccache.spec index bfa1714..ff22f0d 100644 --- a/ccache.spec +++ b/ccache.spec @@ -46,6 +46,12 @@ make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} %{?_smp_mflags} +# create the compat symlinks into /usr/libdir/ccache +mkdir -p %{buildroot}/%{_libdir}/%{name} +cd %{buildroot}/%{_libdir}/%{name} +ln -sf ../../bin/%{name} gcc +ln -sf ../../bin/%{name} g++ + %check %ifarch i586 # On i586 use only quick minimal testsuite, full one fails @@ -60,5 +66,6 @@ make quicktest %{?_smp_mflags} %doc AUTHORS.* GPL-3.0.txt LICENSE.* MANUAL.* NEWS.* README.* %doc %{_mandir}/man1/%{name}.1%{ext_man} %{_bindir}/%{name} +%{_libdir}/%{name} %changelog