diff options
| -rw-r--r-- | meta/conf/bitbake.conf | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 523a33dd78..90b0403d0b 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
| @@ -335,7 +335,8 @@ PATCHRESOLVE = 'user' | |||
| 335 | 335 | ||
| 336 | export BUILD_CPPFLAGS = "-isystem${STAGING_INCDIR_NATIVE}" | 336 | export BUILD_CPPFLAGS = "-isystem${STAGING_INCDIR_NATIVE}" |
| 337 | export CPPFLAGS = "${TARGET_CPPFLAGS}" | 337 | export CPPFLAGS = "${TARGET_CPPFLAGS}" |
| 338 | export TARGET_CPPFLAGS = "-isystem${STAGING_DIR_TARGET}${layout_includedir}" | 338 | export TARGET_CPPFLAGS = "" |
| 339 | #export TARGET_CPPFLAGS = "-isystem${STAGING_DIR_TARGET}${layout_includedir}" | ||
| 339 | 340 | ||
| 340 | export BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${BUILD_OPTIMIZATION}" | 341 | export BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${BUILD_OPTIMIZATION}" |
| 341 | export CFLAGS = "${TARGET_CFLAGS}" | 342 | export CFLAGS = "${TARGET_CFLAGS}" |
| @@ -349,9 +350,10 @@ export BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \ | |||
| 349 | -Wl,-rpath-link,${STAGING_LIBDIR_NATIVE} \ | 350 | -Wl,-rpath-link,${STAGING_LIBDIR_NATIVE} \ |
| 350 | -Wl,-rpath,${STAGING_LIBDIR_NATIVE} -Wl,-O1" | 351 | -Wl,-rpath,${STAGING_LIBDIR_NATIVE} -Wl,-O1" |
| 351 | export LDFLAGS = "${TARGET_LDFLAGS}" | 352 | export LDFLAGS = "${TARGET_LDFLAGS}" |
| 352 | export TARGET_LDFLAGS = "-L${STAGING_DIR_TARGET}${layout_libdir} \ | 353 | export TARGET_LDFLAGS = "-Wl,-O1" |
| 353 | -Wl,-rpath-link,${STAGING_DIR_TARGET}${layout_libdir} \ | 354 | #export TARGET_LDFLAGS = "-L${STAGING_DIR_TARGET}${layout_libdir} \ |
| 354 | -Wl,-O1" | 355 | # -Wl,-rpath-link,${STAGING_DIR_TARGET}${layout_libdir} \ |
| 356 | # -Wl,-O1" | ||
| 355 | 357 | ||
| 356 | # Which flags to leave by strip-flags() in bin/build/oebuild.sh ? | 358 | # Which flags to leave by strip-flags() in bin/build/oebuild.sh ? |
| 357 | ALLOWED_FLAGS = "-O -mcpu -march -pipe" | 359 | ALLOWED_FLAGS = "-O -mcpu -march -pipe" |
