From bd3869dcee73a59df015f048c3b8f3cebdadecc0 Mon Sep 17 00:00:00 2001 From: Jamin Lin Date: Fri, 27 Dec 2024 15:59:44 +0800 Subject: [PATCH] add LDFLAGS in OUTCMD to fix YOCTO QA issues Users can set "LDFLAGS" of Yocto build environment in LFLAGS_END variable to fix "ldflags" QA error. However, the source files use "LFLAGS_END" variable to show the compiler flag information. ``` Compiler version : GCC13.2.0 Compiler flags : -O2 -DMULTITHREAD=2 -DUSE_FORK -pthread -lrt ``` LDFLAGS of Yocto build environment includes the build path and it causes "buildpath" QA warning/error. To fix all QA errors/warnings, adds LDFLAGS in the OUTCMD. Signed-off-by: Jamin Lin --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c2db7cc..6e61238 100644 --- a/Makefile +++ b/Makefile @@ -64,7 +64,7 @@ OBJS = $(addprefix $(OPATH),$(addsuffix $(OEXT),$(CORE_FILES)) $(PORT_OBJS)) OUTNAME = coremark$(EXE) OUTFILE = $(OPATH)$(OUTNAME) LOUTCMD = $(OFLAG) $(OUTFILE) $(LFLAGS_END) -OUTCMD = $(OUTFLAG) $(OUTFILE) $(LFLAGS_END) +OUTCMD = $(OUTFLAG) $(OUTFILE) $(LDFLAGS) $(LFLAGS_END) HEADERS = coremark.h CHECK_FILES = $(ORIG_SRCS) $(HEADERS)