Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | From 458e9450cecf703f55536e609365162719585900 Mon Sep 17 00:00:00 2001 |
| 2 | From: "Roy.Li" <rongqing.li@windriver.com> |
| 3 | Date: Wed, 10 Sep 2014 17:03:29 +0800 |
| 4 | Subject: [PATCH] do not compile host tools, since we have native |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | |
| 8 | Signed-off-by: Roy.Li <rongqing.li@windriver.com> |
| 9 | --- |
| 10 | configure.ac | 23 +---------------------- |
| 11 | 1 file changed, 1 insertion(+), 22 deletions(-) |
| 12 | |
| 13 | diff --git a/configure.ac b/configure.ac |
| 14 | index b46130d..cf58654 100644 |
| 15 | --- a/configure.ac |
| 16 | +++ b/configure.ac |
| 17 | @@ -90,28 +90,7 @@ AC_CANONICAL_BUILD |
| 18 | # $native_tools is also added to SUBDIRS in the main Makefile.am, |
| 19 | # so that make compiles the native tools first. |
| 20 | # |
| 21 | -if test "$cross_compiling" = no; then |
| 22 | - native_tools= |
| 23 | -else |
| 24 | - native_tools=tools |
| 25 | - test -d "$native_tools" || mkdir "$native_tools" |
| 26 | - confdir=`(cd "$srcdir";pwd)` |
| 27 | - # Make sure the secondary configure won't fail with |
| 28 | - # "error: source directory already configured". |
| 29 | - rm -f config.status |
| 30 | - AC_MSG_NOTICE([[Doing configure of native tools (${build}).]]) |
| 31 | - cd "$native_tools" || exit 1 |
| 32 | - # Run secondary configure in alternate environment or |
| 33 | - # it gets the wrong CC etc. env -i gives this build host configure |
| 34 | - # a clean environment. |
| 35 | - env -i CC="${BUILD_CC}" AR="${BUILD_AR}" RANLIB="${BUILD_RANLIB}" \ |
| 36 | - PATH="${PATH}" \ |
| 37 | - tools_only=1 \ |
| 38 | - ${confdir}/configure --build=${build} --host=${build} \ |
| 39 | - --disable-rpath --disable-nls |
| 40 | - cd .. || exit 1 |
| 41 | - AC_MSG_NOTICE([[Continuing with main configure (${host}).]]) |
| 42 | -fi |
| 43 | +native_tools= |
| 44 | AC_SUBST(native_tools) |
| 45 | AM_CONDITIONAL(TOOLS_ONLY, [[test "x$tools_only" = x1]]) |
| 46 | |
| 47 | -- |
| 48 | 1.9.1 |
| 49 | |