diff options
-rw-r--r-- | conf/oe.conf | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/conf/oe.conf b/conf/oe.conf index 115a5fd3f9..daee332520 100644 --- a/conf/oe.conf +++ b/conf/oe.conf @@ -276,6 +276,7 @@ ALLOWED_FLAGS = "-O -mcpu -march -pipe" FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2" DEBUG_OPTIMIZATION = "-O -g" SELECTED_OPTIMIZATION := "${@oe.data.getVar(['FULL_OPTIMIZATION', 'DEBUG_OPTIMIZATION'][oe.data.getVar('DEBUG_BUILD', d, 1) == '1'], d, 1)}" +BUILD_OPTIMIZATION = "-O2" # XXX unused? OPTIMIZATION = "-O2" @@ -284,7 +285,7 @@ export BUILD_CPPFLAGS = "-I${STAGING_DIR}/${BUILD_SYS}/include" export CPPFLAGS = "${TARGET_CPPFLAGS}" export TARGET_CPPFLAGS = "-I${STAGING_DIR}/${TARGET_SYS}/include" -export BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${SELECTED_OPTIMIZATION}" +export BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${BUILD_OPTIMIZATION}" export CFLAGS = "${TARGET_CFLAGS}" export TARGET_CFLAGS = "${TARGET_CPPFLAGS} ${SELECTED_OPTIMIZATION}" |