diff options
Diffstat (limited to 'recipes-extended/crconf/crconf/0001-Modify-the-Makefile-for-cross-compile.patch')
-rw-r--r-- | recipes-extended/crconf/crconf/0001-Modify-the-Makefile-for-cross-compile.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes-extended/crconf/crconf/0001-Modify-the-Makefile-for-cross-compile.patch b/recipes-extended/crconf/crconf/0001-Modify-the-Makefile-for-cross-compile.patch new file mode 100644 index 00000000..4459c370 --- /dev/null +++ b/recipes-extended/crconf/crconf/0001-Modify-the-Makefile-for-cross-compile.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 2c260c8c437c7f72f093b6c157a38b93443bde1d Mon Sep 17 00:00:00 2001 | ||
2 | From: Chunrong Guo <chunrong.guo@nxp.com> | ||
3 | Date: Mon, 11 Dec 2017 15:45:05 +0800 | ||
4 | Subject: [PATCH] Modify the Makefile for cross compile | ||
5 | |||
6 | Upstream-Status: Inappropriate [embedded specific] | ||
7 | |||
8 | Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com> | ||
9 | --- | ||
10 | Makefile | 4 ++-- | ||
11 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
12 | |||
13 | diff --git a/Makefile b/Makefile | ||
14 | index c7bfee2..d6421f3 100644 | ||
15 | --- a/Makefile | ||
16 | +++ b/Makefile | ||
17 | @@ -4,8 +4,8 @@ LIBDIR=/usr/lib | ||
18 | SBINDIR=/sbin | ||
19 | MANDIR=/share/man | ||
20 | |||
21 | -CC = gcc | ||
22 | -HOSTCC = gcc | ||
23 | +CC ?= gcc | ||
24 | +HOSTCC ?= gcc | ||
25 | CCOPTS = -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall | ||
26 | CFLAGS = $(CCOPTS) -I../include | ||
27 | |||
28 | -- | ||
29 | 2.7.4 | ||
30 | |||