summaryrefslogtreecommitdiff
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)
downloadopenembedded-core-ba2e1f4d933c37b372d6749d64614f2510ee9d7b.tar.gz
openembedded-core-ba2e1f4d933c37b372d6749d64614f2510ee9d7b.tar.bz2
openembedded-core-ba2e1f4d933c37b372d6749d64614f2510ee9d7b.tar.xz
openembedded-core-ba2e1f4d933c37b372d6749d64614f2510ee9d7b.zip
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 523a33dd7..90b0403d0 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -335,7 +335,8 @@ PATCHRESOLVE = 'user'
export BUILD_CPPFLAGS = "-isystem${STAGING_INCDIR_NATIVE}"
export CPPFLAGS = "${TARGET_CPPFLAGS}"
-export TARGET_CPPFLAGS = "-isystem${STAGING_DIR_TARGET}${layout_includedir}"
+export TARGET_CPPFLAGS = ""
+#export TARGET_CPPFLAGS = "-isystem${STAGING_DIR_TARGET}${layout_includedir}"
export BUILD_CFLAGS = "${BUILD_CPPFLAGS} ${BUILD_OPTIMIZATION}"
export CFLAGS = "${TARGET_CFLAGS}"
@@ -349,9 +350,10 @@ export BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \
-Wl,-rpath-link,${STAGING_LIBDIR_NATIVE} \
-Wl,-rpath,${STAGING_LIBDIR_NATIVE} -Wl,-O1"
export LDFLAGS = "${TARGET_LDFLAGS}"
-export TARGET_LDFLAGS = "-L${STAGING_DIR_TARGET}${layout_libdir} \
- -Wl,-rpath-link,${STAGING_DIR_TARGET}${layout_libdir} \
- -Wl,-O1"
+export TARGET_LDFLAGS = "-Wl,-O1"
+#export TARGET_LDFLAGS = "-L${STAGING_DIR_TARGET}${layout_libdir} \
+# -Wl,-rpath-link,${STAGING_DIR_TARGET}${layout_libdir} \
+# -Wl,-O1"
# Which flags to leave by strip-flags() in bin/build/oebuild.sh ?
ALLOWED_FLAGS = "-O -mcpu -march -pipe"