diff options
Diffstat (limited to 'meta-oe/recipes-devtools/serialcheck/serialcheck/0001-Makefile-Change-order-of-link-flags.patch')
-rw-r--r-- | meta-oe/recipes-devtools/serialcheck/serialcheck/0001-Makefile-Change-order-of-link-flags.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/serialcheck/serialcheck/0001-Makefile-Change-order-of-link-flags.patch b/meta-oe/recipes-devtools/serialcheck/serialcheck/0001-Makefile-Change-order-of-link-flags.patch new file mode 100644 index 000000000..2ab48345d --- /dev/null +++ b/meta-oe/recipes-devtools/serialcheck/serialcheck/0001-Makefile-Change-order-of-link-flags.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From efc8a4e717ba919c869c2da1c7de2d08bc976926 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 24 Feb 2016 18:48:07 +0000 | ||
4 | Subject: [PATCH] Makefile: Change order of link flags | ||
5 | |||
6 | This helps in injectcting LDFLAGS from env to take effect | ||
7 | as it appears last on cmdline now | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | Upstream-Status: Pending | ||
12 | |||
13 | Makefile | 10 ++++++++-- | ||
14 | 1 file changed, 8 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/Makefile b/Makefile | ||
17 | index ba2bfbb..6d13e68 100644 | ||
18 | --- a/Makefile | ||
19 | +++ b/Makefile | ||
20 | @@ -1,3 +1,9 @@ | ||
21 | -CFLAGS=-O2 -Wall -Wextra -g -Wno-sign-compare -Wno-pointer-sign | ||
22 | -CC=gcc | ||
23 | +CFLAGS?=-O2 -Wall -Wextra -g -Wno-sign-compare -Wno-pointer-sign | ||
24 | +CC?=gcc | ||
25 | all: serialcheck | ||
26 | +serialcheck : serialcheck.o | ||
27 | + $(CC) -o serialcheck serialcheck.o $(CFLAGS) $(LDFLAGS) | ||
28 | + | ||
29 | +%.o : %.c | ||
30 | + $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@ | ||
31 | + | ||
32 | -- | ||
33 | 1.9.1 | ||
34 | |||