mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
bitbake.conf: Further cleanup compiler optimization flags
Move the -pipe option out of the optimization flags and directly into the flags variables since we always use it now. Also move the debug prefix mapping there to match the nativesdk case which already does this. Fix the documentation and two recipe usages to match the change. (From OE-Core rev: 9badf68d78d995f7d5d4cf27e045f029fc6d4044) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -76,11 +76,10 @@ LDFLAGS="-ldl -lutil"
|
||||
# Perf's build system adds its own optimization flags for most TUs,
|
||||
# overriding the flags included here. But for some, perf does not add
|
||||
# any -O option, so ensure the distro's chosen optimization gets used
|
||||
# for those. Since ${SELECTED_OPTIMIZATION} always includes
|
||||
# ${DEBUG_FLAGS} which in turn includes ${DEBUG_PREFIX_MAP}, this also
|
||||
# ensures perf is built with appropriate -f*-prefix-map options,
|
||||
# for those. Also include ${DEBUG_PREFIX_MAP} which nsures perf is
|
||||
# built with appropriate -f*-prefix-map options,
|
||||
# avoiding the 'buildpaths' QA warning.
|
||||
TARGET_CC_ARCH += "${SELECTED_OPTIMIZATION}"
|
||||
TARGET_CC_ARCH += "${SELECTED_OPTIMIZATION} ${DEBUG_PREFIX_MAP}"
|
||||
|
||||
EXTRA_OEMAKE = '\
|
||||
V=1 \
|
||||
|
||||
Reference in New Issue
Block a user