mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-01-11 15:11:26 +00:00
klibc/klibc.inc : Add DEBUG_PREFIX_MAP flag.
Following reproducible-builds.org recommendations, using compiler flags
like -ffile-prefix-map or -fdebug-prefix-map allows replace build-time
paths by install-time ones in the debugging sections of binaries.
Variable DEBUG_PREFIX_MAP set these flags correctly in yocto build
context to guarantee reproducible builds.
Signed-off-by: Fabien Thomas <fabien.thomas@smile.fr>
Reviewed-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 3f9032f126)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
committed by
Armin Kuster
parent
210800f123
commit
dcc3639696
@@ -32,6 +32,7 @@ SRC_URI[sha256sum] = "d673a294f742d59368222ff5c38462d81098c55063799de6fb8a7ba3d4
|
||||
S = "${WORKDIR}/klibc-${PV}"
|
||||
|
||||
OPTFLAGS = "${TUNE_CCARGS} -Os -fcommon"
|
||||
OPTFLAGS:append = " ${DEBUG_PREFIX_MAP}"
|
||||
OPTFLAGS:append:toolchain-clang = " -fno-builtin-bcmp"
|
||||
OPTFLAGS:append:toolchain-clang:mipsarch = " -no-integrated-as"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user