diff options
Diffstat (limited to 'conf/bitbake.conf')
-rw-r--r-- | conf/bitbake.conf | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/conf/bitbake.conf b/conf/bitbake.conf index 1002c01a06..5d638dfbe1 100644 --- a/conf/bitbake.conf +++ b/conf/bitbake.conf @@ -541,10 +541,11 @@ EXTRA_OEMAKE_prepend_task-compile = "${PARALLEL_MAKE} " # Optimization flags. ################################################################## +DEBUG_FLAGS = "-g" FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2" -DEBUG_OPTIMIZATION = "-O -fno-omit-frame-pointer -g" +DEBUG_OPTIMIZATION = "-O -fno-omit-frame-pointer ${DEBUG_FLAGS}" SELECTED_OPTIMIZATION = "${@bb.data.getVar(['FULL_OPTIMIZATION', 'DEBUG_OPTIMIZATION'][bb.data.getVar('DEBUG_BUILD', d, 1) == '1'], d, 1)}" -BUILD_OPTIMIZATION = "-O2 -g" +BUILD_OPTIMIZATION = "-O2 ${DEBUG_FLAGS}" ################################################################## # Bootstrap stuff. |