[Top][All Lists]

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

Re: Problem with removing <config.h> from gen-scmconfig when cross-compi

From: Mark H Weaver
Subject: Re: Problem with removing <config.h> from gen-scmconfig when cross-compiling
Date: Thu, 13 Mar 2014 12:37:04 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

address@hidden (Ludovic Courtès) writes:

> Mark H Weaver <address@hidden> skribis:
>> I agree that this is fragile and should be reworked somehow, but for
>> 2.0.10, I wonder if we could just revert the part of 8cb0d6d having to
>> do with gen-scmconfig.c.
>> What do you think?
> You’re right.  So for 2.0.10, just revert, and then remove #include
> <config.h> altogether in c-tokenize.lex with a comment saying why.

I don't think we can remove it altogether.  On some non-GNU systems,
some Gnulib's headers complain if we haven't yet included <config.h>.
This was the motivation for e1bb79fde62e678c0f8ceb32c7edd2dab0201a5c,
where you moved the "#include <config.h>" to the top of the c-tokenize.

Dale Evans pointed out that GCC runs the autoconf tests twice when
cross-compiling: once for the build machine and once for the host
machine.  I suspect that this is the proper solution for us, so we'd
end up with two config.h files.

> (BTW, we can test cross-compilation to GNU/Linux with
> guix build guile 
> --target=mips64el-linux-gnu.)

Nice!  I can use this to test any proposed solution(s) we come up with.


reply via email to

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