From 50da216549a1ef3a8964a45f480d5048bbb50f71 Mon Sep 17 00:00:00 2001
From: Alexandre Strube <a.strube@fz-juelich.de>
Date: Wed, 15 Dec 2021 15:32:16 +0100
Subject: [PATCH] ccache

---
 Golden_Repo/c/ccache/ccache-4.5.1.eb | 44 ++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 Golden_Repo/c/ccache/ccache-4.5.1.eb

diff --git a/Golden_Repo/c/ccache/ccache-4.5.1.eb b/Golden_Repo/c/ccache/ccache-4.5.1.eb
new file mode 100644
index 000000000..5e1f8b66c
--- /dev/null
+++ b/Golden_Repo/c/ccache/ccache-4.5.1.eb
@@ -0,0 +1,44 @@
+# Copyright:: Copyright 2012-2014 Uni.Lu/LCSB, NTUA
+# Authors::   Fotis Georgatos <fotis@cern.ch>
+# License::   MIT/GPL
+
+easyblock = 'CMakeNinja'
+
+name = 'ccache'
+version = '4.5.1'
+
+homepage = 'https://ccache.dev/'
+description = """Ccache (or “ccache”) is a compiler cache. It speeds up recompilation by
+caching previous compilations and detecting when the same compilation is being done again"""
+
+
+toolchain = SYSTEM
+
+source_urls = [
+    'https://github.com/ccache/ccache/releases/download/v%(version)s/']
+sources = [SOURCE_TAR_GZ]
+checksums = ['b9789c42e52c73e99428f311a34def9ffec3462736439afd12dbacc7987c1533']
+
+osdependencies = [('glibc-static', 'libc6-dev')]
+
+local_gccver = '11.2.0'
+builddependencies = [
+    ('GCC', local_gccver),
+    ('CMake', '3.21.1', '', SYSTEM),
+    ('Ninja', '1.10.2', '', ('GCCcore', local_gccver)),
+    ('zstd', '1.5.0', '', ('GCCcore', local_gccver)),
+]
+
+# use BFD linker rather than default ld.gold (required on CentOS 8)
+preconfigopts = 'LDFLAGS="-static -fuse-ld=bfd"'
+configopts = '-DENABLE_DOCUMENTATION=OFF -DENABLE_IPO=ON -DZSTD_LIBRARY="$EBROOTZSTD/lib/libzstd.a" '
+# disable hunt for faster linker, since using ld.gold may fail (on CentOS 8, for example)
+configopts += '-DUSE_FASTER_LINKER=OFF'
+
+sanity_check_paths = {
+    'files': ['bin/ccache'],
+    'dirs': []
+}
+sanity_check_commands = ['ccache --help']
+
+moduleclass = 'tools'
-- 
GitLab