From fa1eb21933a880aa20e4ca87574753b1ec272c3b Mon Sep 17 00:00:00 2001 From: Julian Pidancet Date: Wed, 26 Oct 2011 22:41:23 +0100 Subject: Give coreutils a chance to build the df utility The coreutils configure script is unable determine how to get free space from the Operating System when cross-compiling. This changes caches the result of the "statfs2_bsize" test for the coreutils configure script. Both glibc and uclibc defines statfs as a two-argument function and uses a struct statfs containing a f_bsize field. That's why the fu_cv_sys_stat_statfs2_bsize variable has to be defined for both libcs. Signed-off-by: Julian Pidancet Signed-off-by: Richard Purdie --- meta/site/common-glibc | 3 +++ meta/site/common-uclibc | 3 +++ 2 files changed, 6 insertions(+) (limited to 'meta/site') diff --git a/meta/site/common-glibc b/meta/site/common-glibc index 9b74038d90..364ab67d78 100644 --- a/meta/site/common-glibc +++ b/meta/site/common-glibc @@ -25,6 +25,9 @@ clamav_av_have_in_port_t=${clamav_av_have_in_port_t=yes} clamav_av_have_in_addr_t=${clamav_av_have_in_addr_t=yes} ac_cv_func_mmap_fixed_mapped=${ac_cv_func_mmap_fixed_mapped=yes} +# coreutils +fu_cv_sys_stat_statfs2_bsize=${fu_cv_sys_stat_statfs2_bsize=yes} + # glib glib_cv_strlcpy=${glib_cv_strlcpy=no} ac_cv_func_printf_unix98=${ac_cv_func_printf_unix98=yes} diff --git a/meta/site/common-uclibc b/meta/site/common-uclibc index bdad0e9dc6..a264765e87 100644 --- a/meta/site/common-uclibc +++ b/meta/site/common-uclibc @@ -28,6 +28,9 @@ ac_cv_have_abstract_sockets=${ac_cv_have_abstract_sockets=yes} bash_cv_under_sys_siglist=${bash_cv_under_sys_siglist=no} bash_cv_sys_siglist=${bash_cv_sys_siglist=no} +# coreutils +fu_cv_sys_stat_statfs2_bsize=${fu_cv_sys_stat_statfs2_bsize=yes} + # va_copy and _va_copy ac_cv_va_copy=${ac_cv_va_copy=yes} ac_cv___va_copy=${ac_cv___va_copy=yes} -- cgit 1.2.3-korg