summaryrefslogtreecommitdiffstats
path: root/recipes/gcc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-11-26 14:27:06 -0800
committerKhem Raj <raj.khem@gmail.com>2010-11-26 17:29:25 -0800
commita00e4c89ba413a0c877f9d36382477fe2fd3e965 (patch)
tree69d51e6b1115e1ef959b66a655e02d379fe405e7 /recipes/gcc
parentf7403d0b48339483fa02e4042d2c70b992228beb (diff)
downloadopenembedded-a00e4c89ba413a0c877f9d36382477fe2fd3e965.tar.gz
gcc-configure-sdk.inc: Remove special do_configure
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes/gcc')
-rw-r--r--recipes/gcc/gcc-configure-sdk.inc31
1 files changed, 0 insertions, 31 deletions
diff --git a/recipes/gcc/gcc-configure-sdk.inc b/recipes/gcc/gcc-configure-sdk.inc
index 7210d2b05b..6be5d72b12 100644
--- a/recipes/gcc/gcc-configure-sdk.inc
+++ b/recipes/gcc/gcc-configure-sdk.inc
@@ -28,39 +28,8 @@ export WINDRES_FOR_TARGET = "${TOOLCHAIN_PATH}/${TARGET_SYS}/bin/windres"
#
export ARCH_FLAGS_FOR_TARGET = "--sysroot=${STAGING_DIR_TARGET}"
-do_configure () {
- export CC_FOR_BUILD="${BUILD_CC}"
- export CXX_FOR_BUILD="${BUILD_CXX}"
- export CFLAGS_FOR_BUILD="${BUILD_CFLAGS}"
- export CPPFLAGS_FOR_BUILD="${BUILD_CPPFLAGS}"
- export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}"
- export LDFLAGS_FOR_BUILD="${BUILD_LDFLAGS}"
- # Make sure we use GMP/MPFR statically
- sed -i 's/^\(HOST_GMPLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
- sed -i 's/^\(HOST_GMPLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
- sed -i 's/^\(HOST_PPLLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
- sed -i 's/^\(HOST_PPLLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
- sed -i 's/^\(HOST_LIBELFLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.tpl
- sed -i 's/^\(HOST_LIBELFLIBS =\) \(.*\)$/\1 -Wl,-Bstatic \2 -Wl,-Bdynamic/' ${S}/Makefile.in
-
- (cd ${S} && gnu-configize) || die "failure running gnu-configize"
- # gcc assumes ${sysroot}/usr to be prefix on linux targets
- # but we have distro option to flatten out the tree and micro
- # uses root file system without leading /usr so we need to
- # teach gcc configure to look in correct include paths
- # unfortunately there is no configure knob to indicate this
- # to configury hence the sed :(
- sed -i 's:/usr/include:${target_includedir}:g' ${S}/gcc/configure.ac
- sed -i 's:/usr/include:${target_includedir}:g' ${S}/gcc/configure
- oe_runconf
-}
-
do_compile () {
export CC="${BUILD_CC}"
- export AR_FOR_TARGET="${TARGET_SYS}-ar"
- export RANLIB_FOR_TARGET="${TARGET_SYS}-ranlib"
- export LD_FOR_TARGET="${TARGET_SYS}-ld"
- export NM_FOR_TARGET="${TARGET_SYS}-nm"
export CC_FOR_TARGET="${CCACHE} ${TARGET_SYS}-gcc ${TARGET_CC_ARCH}"
base_do_compile
}