On 4 September 2018 at 08:02, Thomas Huth <th...@redhat.com> wrote: > When cross-compiling QEMU for a target that significantly differs from > the host, the current information in config.status is not enough to > properly re-create the configuration. For example when I try to test > my build with the mingw32 cross-compiler, I regularly get this error > after the build system tried to re-create the configuration with the > config.status file: > > ERROR: sizeof(size_t) doesn't match GLIB_SIZEOF_SIZE_T. > You probably need to set PKG_CONFIG_LIBDIR > to point to the right pkg-config files for your > build target >RAND > A similar problem exists for the "windres" tool, where you have to > set the WINDRES variable in case it has a different name. > So let's fix these issues by storing the configuration for theseq > variables in the config.status file, too.
This is also true if the user set CC or RANLIB or any of a bunch of other environment variables that configure uses. If we're going to store those settings in config.status we should consistently do it for all environment variables we care about, I think. What does autoconf do for the equivalent situation? thanks -- PMM