diff options
| -rw-r--r-- | meta/classes/autotools.bbclass | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index 8768a6ad68..3d22ad0255 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass | |||
| @@ -25,7 +25,9 @@ inherit siteinfo | |||
| 25 | 25 | ||
| 26 | # Space separated list of shell scripts with variables defined to supply test | 26 | # Space separated list of shell scripts with variables defined to supply test |
| 27 | # results for autoconf tests we cannot run at build time. | 27 | # results for autoconf tests we cannot run at build time. |
| 28 | export CONFIG_SITE = "${@siteinfo_get_files(d)}" | 28 | # The value of this variable is filled in in a prefunc because it depends on |
| 29 | # the contents of the sysroot. | ||
| 30 | export CONFIG_SITE | ||
| 29 | 31 | ||
| 30 | acpaths ?= "default" | 32 | acpaths ?= "default" |
| 31 | EXTRA_AUTORECONF = "--exclude=autopoint" | 33 | EXTRA_AUTORECONF = "--exclude=autopoint" |
| @@ -132,6 +134,8 @@ EXTRACONFFUNCS ??= "" | |||
| 132 | EXTRA_OECONF_append = " ${PACKAGECONFIG_CONFARGS}" | 134 | EXTRA_OECONF_append = " ${PACKAGECONFIG_CONFARGS}" |
| 133 | 135 | ||
| 134 | do_configure[prefuncs] += "autotools_preconfigure autotools_aclocals ${EXTRACONFFUNCS}" | 136 | do_configure[prefuncs] += "autotools_preconfigure autotools_aclocals ${EXTRACONFFUNCS}" |
| 137 | do_compile[prefuncs] += "autotools_aclocals" | ||
| 138 | do_install[prefuncs] += "autotools_aclocals" | ||
| 135 | do_configure[postfuncs] += "autotools_postconfigure" | 139 | do_configure[postfuncs] += "autotools_postconfigure" |
| 136 | 140 | ||
| 137 | ACLOCALDIR = "${STAGING_DATADIR}/aclocal" | 141 | ACLOCALDIR = "${STAGING_DATADIR}/aclocal" |
| @@ -140,7 +144,6 @@ ACLOCALEXTRAPATH_class-target = " -I ${STAGING_DATADIR_NATIVE}/aclocal/" | |||
| 140 | ACLOCALEXTRAPATH_class-nativesdk = " -I ${STAGING_DATADIR_NATIVE}/aclocal/" | 144 | ACLOCALEXTRAPATH_class-nativesdk = " -I ${STAGING_DATADIR_NATIVE}/aclocal/" |
| 141 | 145 | ||
| 142 | python autotools_aclocals () { | 146 | python autotools_aclocals () { |
| 143 | # Refresh variable with cache files | ||
| 144 | d.setVar("CONFIG_SITE", siteinfo_get_files(d, sysrootcache=True)) | 147 | d.setVar("CONFIG_SITE", siteinfo_get_files(d, sysrootcache=True)) |
| 145 | } | 148 | } |
| 146 | 149 | ||
