]> code.ossystems Code Review - openembedded-core.git/commitdiff
autotools.bbclass: remove autotools_set_crosscompiling
authorRoss Burton <ross.burton@intel.com>
Wed, 2 Jul 2014 10:24:11 +0000 (11:24 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Jul 2014 16:38:47 +0000 (17:38 +0100)
The only reference to this function is a commented-out assignment, and nothing
in oe-core nor meta-oe uses autotools_set_crosscompiling directly.  As it's
unused, remove it.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/autotools.bbclass

index 0dc1e6b8b73c45d888670b35a91b9128d709d5f0..19edc54f6d7b6efba8be535b993e9a9e9da0d122 100644 (file)
@@ -49,19 +49,12 @@ export CXXFLAGS_FOR_BUILD="${BUILD_CXXFLAGS}"
 export LD_FOR_BUILD = "${BUILD_LD}"
 export LDFLAGS_FOR_BUILD = "${BUILD_LDFLAGS}"
 
-def autotools_set_crosscompiling(d):
-    if not bb.data.inherits_class('native', d):
-        return " cross_compiling=yes"
-    return ""
-
 def append_libtool_sysroot(d):
     # Only supply libtool sysroot option for non-native packages
     if not bb.data.inherits_class('native', d):
         return '--with-libtool-sysroot=${STAGING_DIR_HOST}'
     return ""
 
-# EXTRA_OECONF_append = "${@autotools_set_crosscompiling(d)}"
-
 CONFIGUREOPTS = " --build=${BUILD_SYS} \
                  --host=${HOST_SYS} \
                  --target=${TARGET_SYS} \