add LDFLAGS in OUTCMD to fix YOCTO QA issues#66
Conversation
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 <jamin_lin@aspeedtech.com>
|
Hi @jamin-aspeed , |
|
Hi @joseph-yiu Thanks for checking. I re-tested this with the latest CoreMark version using commit: Without this pull request, I still encounter build failures and QA errors as shown below: The recipe I used for building CoreMark is: So from my testing, this pull request is still required for the current Yocto/OpenBMC environment. Thanks and regards, |
|
Thanks for your quick response. We will add this to the list. |
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.
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.