File: dont-hardcode-current-gcc.patch

package info (click to toggle)
iptables-netflow 2.6-7.2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,632 kB
  • sloc: ansic: 6,831; sh: 896; ruby: 619; makefile: 239
file content (18 lines) | stat: -rw-r--r-- 640 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Don't hardcode default gcc version (i.e. don't override $CC if set)
 Avoids compilation failures with older kernels which can't be
 compiled with the current gcc, e.g. 5.7 needs gcc-9 instead of the
 current gcc-10 (where the gcc symlink points to).
Author: Axel Beckert <abe@debian.org>
Forwarded: no

--- a/Makefile.in
+++ b/Makefile.in
@@ -13,7 +13,7 @@
 SNMPTGSO = /usr/lib/snmp/dlmod/snmp_NETFLOW.so
 SNMPCONF = /etc/snmp/snmpd.conf
 SNMPLINE = dlmod netflow $(SNMPTGSO)
-CC = gcc
+CC ?= gcc
 
 # https://www.kernel.org/doc/Documentation/kbuild/modules.txt
 # https://www.kernel.org/doc/Documentation/kbuild/makefiles.txt