summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/autotools.bbclass7
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.
28export 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.
30export CONFIG_SITE
29 31
30acpaths ?= "default" 32acpaths ?= "default"
31EXTRA_AUTORECONF = "--exclude=autopoint" 33EXTRA_AUTORECONF = "--exclude=autopoint"
@@ -132,6 +134,8 @@ EXTRACONFFUNCS ??= ""
132EXTRA_OECONF_append = " ${PACKAGECONFIG_CONFARGS}" 134EXTRA_OECONF_append = " ${PACKAGECONFIG_CONFARGS}"
133 135
134do_configure[prefuncs] += "autotools_preconfigure autotools_aclocals ${EXTRACONFFUNCS}" 136do_configure[prefuncs] += "autotools_preconfigure autotools_aclocals ${EXTRACONFFUNCS}"
137do_compile[prefuncs] += "autotools_aclocals"
138do_install[prefuncs] += "autotools_aclocals"
135do_configure[postfuncs] += "autotools_postconfigure" 139do_configure[postfuncs] += "autotools_postconfigure"
136 140
137ACLOCALDIR = "${STAGING_DATADIR}/aclocal" 141ACLOCALDIR = "${STAGING_DATADIR}/aclocal"
@@ -140,7 +144,6 @@ ACLOCALEXTRAPATH_class-target = " -I ${STAGING_DATADIR_NATIVE}/aclocal/"
140ACLOCALEXTRAPATH_class-nativesdk = " -I ${STAGING_DATADIR_NATIVE}/aclocal/" 144ACLOCALEXTRAPATH_class-nativesdk = " -I ${STAGING_DATADIR_NATIVE}/aclocal/"
141 145
142python autotools_aclocals () { 146python 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