summaryrefslogtreecommitdiffstats
path: root/recipes-containers/criu/files/0001-criu-Fix-toolchain-hardcode.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-containers/criu/files/0001-criu-Fix-toolchain-hardcode.patch')
-rw-r--r--recipes-containers/criu/files/0001-criu-Fix-toolchain-hardcode.patch12
1 files changed, 7 insertions, 5 deletions
diff --git a/recipes-containers/criu/files/0001-criu-Fix-toolchain-hardcode.patch b/recipes-containers/criu/files/0001-criu-Fix-toolchain-hardcode.patch
index 838cbdc9..bd7a6c57 100644
--- a/recipes-containers/criu/files/0001-criu-Fix-toolchain-hardcode.patch
+++ b/recipes-containers/criu/files/0001-criu-Fix-toolchain-hardcode.patch
@@ -46,17 +46,20 @@ diff --git a/scripts/nmk/scripts/tools.mk b/scripts/nmk/scripts/tools.mk
46index 56dba84..1698821 100644 46index 56dba84..1698821 100644
47--- a/scripts/nmk/scripts/tools.mk 47--- a/scripts/nmk/scripts/tools.mk
48+++ b/scripts/nmk/scripts/tools.mk 48+++ b/scripts/nmk/scripts/tools.mk
49@@ -2,31 +2,31 @@ ifndef ____nmk_defined__tools 49@@ -2,35 +2,35 @@ ifndef ____nmk_defined__tools
50 50
51 # 51 #
52 # System tools shorthands 52 # System tools shorthands
53-RM := rm -f 53-RM := rm -f
54+RM ?= rm -f 54+RM ?= rm -f
55 HOSTLD ?= ld 55 HOSTLD ?= ld
56-LD := $(CROSS_COMPILE)$(HOSTLD) 56 ifeq ($(origin LD), default)
57+LD ?= $(CROSS_COMPILE)$(HOSTLD) 57 LD := $(CROSS_COMPILE)$(HOSTLD)
58 endif
58 HOSTCC ?= gcc 59 HOSTCC ?= gcc
59-CC := $(CROSS_COMPILE)$(HOSTCC) 60 ifeq ($(origin CC), default)
61 CC := $(CROSS_COMPILE)$(HOSTCC)
62 endif
60-CPP := $(CC) -E 63-CPP := $(CC) -E
61-AS := $(CROSS_COMPILE)as 64-AS := $(CROSS_COMPILE)as
62-AR := $(CROSS_COMPILE)ar 65-AR := $(CROSS_COMPILE)ar
@@ -69,7 +72,6 @@ index 56dba84..1698821 100644
69-AWK := awk 72-AWK := awk
70-PERL := perl 73-PERL := perl
71-FULL_PYTHON := $(shell which python2 2>/dev/null || which python3 2>/dev/null) 74-FULL_PYTHON := $(shell which python2 2>/dev/null || which python3 2>/dev/null)
72+CC ?= $(CROSS_COMPILE)$(HOSTCC)
73+CPP ?= $(CC) -E 75+CPP ?= $(CC) -E
74+AS ?= $(CROSS_COMPILE)as 76+AS ?= $(CROSS_COMPILE)as
75+AR ?= $(CROSS_COMPILE)ar 77+AR ?= $(CROSS_COMPILE)ar