summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-11-12 11:28:14 +0000
committerRichard Purdie <richard@openedhand.com>2007-11-12 11:28:14 +0000
commitba2e1f4d933c37b372d6749d64614f2510ee9d7b (patch)
tree1927b6b036023daf5e3c44f67ce521a1cec0db4c
parent01d5da72d0bd5038ce4b6a211546a4ca3f8daffd (diff)
downloadpoky-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
-rw-r--r--meta/conf/bitbake.conf10
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
336export BUILD_CPPFLAGS = "-isystem${STAGING_INCDIR_NATIVE}" 336export BUILD_CPPFLAGS = "-isystem${STAGING_INCDIR_NATIVE}"
337export CPPFLAGS = "${TARGET_CPPFLAGS}" 337export CPPFLAGS = "${TARGET_CPPFLAGS}"
338export TARGET_CPPFLAGS = "-isystem${STAGING_DIR_TARGET}${layout_includedir}" 338export TARGET_CPPFLAGS = ""
339#export TARGET_CPPFLAGS = "-isystem${STAGING_DIR_TARGET}${layout_includedir}"
339 340
340export BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${BUILD_OPTIMIZATION}" 341export BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${BUILD_OPTIMIZATION}"
341export CFLAGS = "${TARGET_CFLAGS}" 342export 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"
351export LDFLAGS = "${TARGET_LDFLAGS}" 352export LDFLAGS = "${TARGET_LDFLAGS}"
352export TARGET_LDFLAGS = "-L${STAGING_DIR_TARGET}${layout_libdir} \ 353export 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 ?
357ALLOWED_FLAGS = "-O -mcpu -march -pipe" 359ALLOWED_FLAGS = "-O -mcpu -march -pipe"