File: use-gcc-compiler.diff

package info (click to toggle)
swupdate 2025.05%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 9,816 kB
  • sloc: ansic: 61,689; python: 6,304; perl: 5,901; makefile: 789; sh: 534; javascript: 229
file content (25 lines) | stat: -rw-r--r-- 1,027 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Bastian Germann <bastiangermann@fishpost.de>
Date: Thu, 28 May 2020 18:21:43 +0200
Subject: Use gcc compiler

Use explicit gcc to enable cross compiling.
crossprefix-cc will not be available generally on Debian.
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 943e013..852307b 100644
--- a/Makefile
+++ b/Makefile
@@ -183,8 +183,8 @@ include $(srctree)/scripts/Kbuild.include
 # this looks a bit horrible, but 'VAR ?= VALUE' preserves builtin values
 # rather than only user-supplied values from env or command-line
 $(call set_if_default_or_unset,AS,$$(CROSS_COMPILE)as)
-$(call set_if_default_or_unset,LD,$$(CROSS_COMPILE)cc)
-$(call set_if_default_or_unset,CC,$$(CROSS_COMPILE)cc)
+$(call set_if_default_or_unset,LD,$$(CROSS_COMPILE)gcc)
+$(call set_if_default_or_unset,CC,$$(CROSS_COMPILE)gcc)
 $(call set_if_default_or_unset,CPP,$$(CC) -E)
 $(call set_if_default_or_unset,AR,$$(CROSS_COMPILE)ar)
 $(call set_if_default_or_unset,NM,$$(CROSS_COMPILE)nm)