summaryrefslogtreecommitdiff
path: root/debian/patches/14-enable-different-cc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/14-enable-different-cc.patch')
-rw-r--r--debian/patches/14-enable-different-cc.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/patches/14-enable-different-cc.patch b/debian/patches/14-enable-different-cc.patch
new file mode 100644
index 0000000..52b273b
--- /dev/null
+++ b/debian/patches/14-enable-different-cc.patch
@@ -0,0 +1,15 @@
+Description: Enable using different CC, e.g. ccache
+Author: Andrew O. Shadoura <bugzilla@tut.by>
+
+--- a/config.mk
++++ b/config.mk
+@@ -24,7 +24,8 @@
+ STATIC = -static
+
+ # Compiler, Linker. Linker should usually *not* be ld.
+-CC = cc -c
++CC ?= cc
++CC += -c
+ LD = cc
+ # Archiver
+ AR = ar crs