[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: building gen-scmconfig.c on FreeBSD
From: |
Kevin Ryde |
Subject: |
Re: building gen-scmconfig.c on FreeBSD |
Date: |
Thu, 16 Sep 2004 08:19:08 +1000 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) |
Rob Browning <address@hidden> writes:
>
> Is CC_FOR_BUILD for executables that will be run on the host system?
No, for the build system.
> If not, then we shouldn't be using it at all.
> gen-scmconfig has to be run at build time by the host to generate the
> header, so it needs to be built by the host's compiler.
You mean the build compiler I think.
> gen-scmconfig.c doesn't (and must not) depend on any target specific
> computations like sizeof(foo), etc. It is solely used as a portable
> way to generate scmconfig.h, taking into account the contents of
> config.h.
Yep, which is why using $(INCLUDES), which is for the host compiler,
seems doubtful.