diff options
| author | Richard Purdie <richard@openedhand.com> | 2007-11-12 11:28:14 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2007-11-12 11:28:14 +0000 |
| commit | ba2e1f4d933c37b372d6749d64614f2510ee9d7b (patch) | |
| tree | 1927b6b036023daf5e3c44f67ce521a1cec0db4c /meta/conf/bitbake.conf | |
| parent | 01d5da72d0bd5038ce4b6a211546a4ca3f8daffd (diff) | |
| download | poky-ba2e1f4d933c37b372d6749d64614f2510ee9d7b.tar.gz | |
bitbake.conf: Simplify target CPPFLAGS, CFLAGS and LDFLAGS due to sysroot benefits
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3124 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/conf/bitbake.conf')
| -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" |
