summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2008-03-15 11:27:35 +0000
committerRichard Purdie <rpurdie@rpsys.net>2008-03-15 11:27:35 +0000
commit61f76f5ed16476df673e77ecea8113100426eb33 (patch)
treefb69ecbffcdc8c19cc36cdb9f4e9e647cd01e1f2
parent03a9d27cff6a478733e2add43e5c0480906bf3b4 (diff)
gcc-cross-initial.inc: Add sysroot configure options for the case when we use libc-initial
-rw-r--r--packages/gcc/gcc-cross-initial.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/gcc/gcc-cross-initial.inc b/packages/gcc/gcc-cross-initial.inc
index d5722473cf..e0675263ea 100644
--- a/packages/gcc/gcc-cross-initial.inc
+++ b/packages/gcc/gcc-cross-initial.inc
@@ -5,6 +5,7 @@ PROVIDES = "virtual/${TARGET_PREFIX}gcc-initial"
PACKAGES = ""
# This is intended to be a -very- basic config
+# sysroot is needed in case we use libc-initial
EXTRA_OECONF = "--with-local-prefix=${STAGING_DIR_TARGET}${layout_prefix} \
--with-newlib \
--disable-shared \
@@ -14,6 +15,8 @@ EXTRA_OECONF = "--with-local-prefix=${STAGING_DIR_TARGET}${layout_prefix} \
--enable-languages=c \
--enable-target-optspace \
--program-prefix=${TARGET_PREFIX} \
+ --with-sysroot=${STAGING_DIR_TARGET} \
+ --with-build-sysroot=${STAGING_DIR_TARGET} \
${@get_gcc_fpu_setting(bb, d)}"
do_stage_prepend () {