diff options
author | Richard Purdie <richard@openedhand.com> | 2007-11-12 17:31:32 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-11-12 17:31:32 +0000 |
commit | b1d8355a02f60ced882a7f2f1ff9e502f3d97fc3 (patch) | |
tree | 84104e84ffaf5c8ac4afa2c4798e7a7b3e72d5ed /meta | |
parent | 54b470e7271e0961269a5f24b645f39e5914790b (diff) | |
download | poky-b1d8355a02f60ced882a7f2f1ff9e502f3d97fc3.tar.gz |
gcc4-build-sdk.inc: Set build-sysroot option and simplify other sysroot options. The with-sysroot option is likely bogus and should be removed.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3131 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
-rw-r--r-- | meta/packages/gcc/gcc4-build-sdk.inc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/meta/packages/gcc/gcc4-build-sdk.inc b/meta/packages/gcc/gcc4-build-sdk.inc index 1fcd1e80d0..612f2e8bc9 100644 --- a/meta/packages/gcc/gcc4-build-sdk.inc +++ b/meta/packages/gcc/gcc4-build-sdk.inc | |||
@@ -1,14 +1,9 @@ | |||
1 | USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}' | 1 | USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibc", "no", "", d )}' |
2 | USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibcgnueabi", "no", "", d )}' | 2 | USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibcgnueabi", "no", "", d )}' |
3 | 3 | ||
4 | SYSROOT = "${WORKDIR}/sysroot" | 4 | EXTRA_OECONF += "--with-sysroot=${STAGING_DIR_TARGET} --with-build-sysroot=${STAGING_DIR_TARGET}" |
5 | EXTRA_OECONF += "--with-sysroot=${SYSROOT}" | ||
6 | 5 | ||
7 | do_configure () { | 6 | do_configure () { |
8 | # Work around Hardcoded path assumptions in gcc | ||
9 | mkdir -p ${SYSROOT}/usr/ | ||
10 | ln -s ${STAGING_DIR_TARGET}${layout_includedir} ${SYSROOT}/usr/include | ||
11 | ln -s ${STAGING_DIR_TARGET}${layout_libdir} ${SYSROOT}/usr/lib | ||
12 | (cd ${S} && gnu-configize) || die "failure running gnu-configize" | 7 | (cd ${S} && gnu-configize) || die "failure running gnu-configize" |
13 | (cd ${S}/libstdc++-v3 && autoreconf) | 8 | (cd ${S}/libstdc++-v3 && autoreconf) |
14 | oe_runconf | 9 | oe_runconf |