bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: df is never built while cross-compiling for a linux target


From: Jim Meyering
Subject: Re: df is never built while cross-compiling for a linux target
Date: Sun, 06 May 2007 10:22:03 +0200

Mike Frysinger <address@hidden> wrote:
> in coreutils-6.9, the df prog (DF_PROG) is only built when gl_cv_fs_space
> evaluates to "yes" ... this variable is set up in m4/fsusage.m4 in
> gl_FILE_SYSTEM_USAGE
>
> unfortunately, pretty much all of the tests are AC_TRY_RUN tests (every single
> one that matters for Linux is for sure) ... so when cross-compiling coreutils
> for a linux target, the df utility will never be built as all of these tests
> will set gl_cv_fs_space to no
>
> is there any final fall back compile-only test we can come up with here ?

There may be, for very limited cases, but I doubt it's worthwhile: too
much risk of false-positive.  When cross-compiling, the recommended
approach is to prime autoconf's cache, using your knowledge of the
target system.  E.g.,

  fu_cv_sys_stat_statvfs=yes ./configure

That will make the gl_FILE_SYSTEM_USAGE test pass,
which causes gl_FSUSAGE to set gl_cv_fs_space=yes,
and df will build.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]