1From 419dac71dd524a39ad2333e91334b4650e277a78 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 25 Jun 2021 09:43:00 -0700
4Subject: [PATCH] build: Do not override ldflags from environment
5
6bitbake passed LDFLAGS contain important information e.g. which compiler
7runtime to link etc. Therefore append -static to LDFLAGS instead
8
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 Makefile | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/Makefile b/Makefile
16index efda5c0..a867876 100644
17--- a/Makefile
18+++ b/Makefile
19@@ -3,7 +3,7 @@ SRCS = $(sort $(wildcard *.c))
20 OBJS = $(SRCS:.c=.o)
21
22 CFLAGS = -Os -D_XOPEN_SOURCE=700
23-LDFLAGS = -static
24+LDFLAGS += -static
25 LIBS = -lpthread -lrt -lpthread
26
27
28--
292.32.0
30
31