diff options
-rw-r--r-- | meta/classes/sdk.bbclass | 6 | ||||
-rw-r--r-- | meta/conf/bitbake.conf | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes/sdk.bbclass b/meta/classes/sdk.bbclass index d6aca0fccd..09791b06a6 100644 --- a/meta/classes/sdk.bbclass +++ b/meta/classes/sdk.bbclass | |||
@@ -12,9 +12,9 @@ HOST_PREFIX = "${BUILD_PREFIX}" | |||
12 | HOST_CC_ARCH = "${BUILD_CC_ARCH}" | 12 | HOST_CC_ARCH = "${BUILD_CC_ARCH}" |
13 | #HOST_SYS = "${HOST_ARCH}${TARGET_VENDOR}-${HOST_OS}" | 13 | #HOST_SYS = "${HOST_ARCH}${TARGET_VENDOR}-${HOST_OS}" |
14 | 14 | ||
15 | CPPFLAGS = "${BUILD_CPPFLAGS}" | 15 | CPPFLAGS = "${BUILDSDK_CPPFLAGS}" |
16 | CFLAGS = "${BUILD_CFLAGS}" | 16 | CFLAGS = "${BUILDSDK_CFLAGS}" |
17 | CXXFLAGS = "${BUILD_CFLAGS}" | 17 | CXXFLAGS = "${BUILDSDK_CFLAGS}" |
18 | LDFLAGS = "${BUILDSDK_LDFLAGS}" | 18 | LDFLAGS = "${BUILDSDK_LDFLAGS}" |
19 | 19 | ||
20 | # Path prefixes | 20 | # Path prefixes |
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index e392395d68..1e6fc19b73 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -353,11 +353,13 @@ PATCHRESOLVE = 'user' | |||
353 | ################################################################## | 353 | ################################################################## |
354 | 354 | ||
355 | export BUILD_CPPFLAGS = "-isystem${STAGING_INCDIR_NATIVE}" | 355 | export BUILD_CPPFLAGS = "-isystem${STAGING_INCDIR_NATIVE}" |
356 | BUILDSDK_CPPFLAGS = "-isystem${STAGING_INCDIR}" | ||
356 | export CPPFLAGS = "${TARGET_CPPFLAGS}" | 357 | export CPPFLAGS = "${TARGET_CPPFLAGS}" |
357 | export TARGET_CPPFLAGS = "" | 358 | export TARGET_CPPFLAGS = "" |
358 | #export TARGET_CPPFLAGS = "-isystem${STAGING_DIR_TARGET}${layout_includedir}" | 359 | #export TARGET_CPPFLAGS = "-isystem${STAGING_DIR_TARGET}${layout_includedir}" |
359 | 360 | ||
360 | export BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${BUILD_OPTIMIZATION}" | 361 | export BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${BUILD_OPTIMIZATION}" |
362 | BUILDSDK_CFLAGS = "${BUILDSDK_CPPFLAGS} ${BUILD_OPTIMIZATION}" | ||
361 | export CFLAGS = "${TARGET_CFLAGS}" | 363 | export CFLAGS = "${TARGET_CFLAGS}" |
362 | export TARGET_CFLAGS = "${TARGET_CPPFLAGS} ${SELECTED_OPTIMIZATION}" | 364 | export TARGET_CFLAGS = "${TARGET_CPPFLAGS} ${SELECTED_OPTIMIZATION}" |
363 | 365 | ||