diff options
| -rw-r--r-- | meta/classes-recipe/autotools.bbclass | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/meta/classes-recipe/autotools.bbclass b/meta/classes-recipe/autotools.bbclass index 4e7bf6696d..99d3cb7583 100644 --- a/meta/classes-recipe/autotools.bbclass +++ b/meta/classes-recipe/autotools.bbclass | |||
| @@ -139,11 +139,6 @@ do_compile[prefuncs] += "autotools_aclocals" | |||
| 139 | do_install[prefuncs] += "autotools_aclocals" | 139 | do_install[prefuncs] += "autotools_aclocals" |
| 140 | do_configure[postfuncs] += "autotools_postconfigure" | 140 | do_configure[postfuncs] += "autotools_postconfigure" |
| 141 | 141 | ||
| 142 | ACLOCALDIR = "${STAGING_DATADIR}/aclocal" | ||
| 143 | ACLOCALEXTRAPATH = "" | ||
| 144 | ACLOCALEXTRAPATH:class-target = " -I ${STAGING_DATADIR_NATIVE}/aclocal/" | ||
| 145 | ACLOCALEXTRAPATH:class-nativesdk = " -I ${STAGING_DATADIR_NATIVE}/aclocal/" | ||
| 146 | |||
| 147 | python autotools_aclocals () { | 142 | python autotools_aclocals () { |
| 148 | sitefiles, searched = siteinfo_get_files(d, sysrootcache=True) | 143 | sitefiles, searched = siteinfo_get_files(d, sysrootcache=True) |
| 149 | d.setVar("CONFIG_SITE", " ".join(sitefiles)) | 144 | d.setVar("CONFIG_SITE", " ".join(sitefiles)) |
| @@ -171,8 +166,8 @@ autotools_do_configure() { | |||
| 171 | if [ -e ${AUTOTOOLS_SCRIPT_PATH}/configure.in -o -e ${AUTOTOOLS_SCRIPT_PATH}/configure.ac ]; then | 166 | if [ -e ${AUTOTOOLS_SCRIPT_PATH}/configure.in -o -e ${AUTOTOOLS_SCRIPT_PATH}/configure.ac ]; then |
| 172 | olddir=`pwd` | 167 | olddir=`pwd` |
| 173 | cd ${AUTOTOOLS_SCRIPT_PATH} | 168 | cd ${AUTOTOOLS_SCRIPT_PATH} |
| 174 | mkdir -p ${ACLOCALDIR} | 169 | # aclocal looks in the native sysroot by default, so tell it to also look in the target sysroot. |
| 175 | ACLOCAL="aclocal --system-acdir=${ACLOCALDIR}/" | 170 | ACLOCAL="aclocal --aclocal-path=${STAGING_DATADIR}/aclocal/" |
| 176 | if [ x"${acpaths}" = xdefault ]; then | 171 | if [ x"${acpaths}" = xdefault ]; then |
| 177 | acpaths= | 172 | acpaths= |
| 178 | for i in `find ${AUTOTOOLS_SCRIPT_PATH} -ignore_readdir_race -maxdepth 2 -name \*.m4|grep -v 'aclocal.m4'| \ | 173 | for i in `find ${AUTOTOOLS_SCRIPT_PATH} -ignore_readdir_race -maxdepth 2 -name \*.m4|grep -v 'aclocal.m4'| \ |
| @@ -182,7 +177,6 @@ autotools_do_configure() { | |||
| 182 | else | 177 | else |
| 183 | acpaths="${acpaths}" | 178 | acpaths="${acpaths}" |
| 184 | fi | 179 | fi |
| 185 | acpaths="$acpaths ${ACLOCALEXTRAPATH}" | ||
| 186 | # autoreconf is too shy to overwrite aclocal.m4 if it doesn't look | 180 | # autoreconf is too shy to overwrite aclocal.m4 if it doesn't look |
| 187 | # like it was auto-generated. Work around this by blowing it away | 181 | # like it was auto-generated. Work around this by blowing it away |
| 188 | # by hand, unless the package specifically asked not to run aclocal. | 182 | # by hand, unless the package specifically asked not to run aclocal. |
