[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: utility programs used during build
From: |
Warren Turkal |
Subject: |
Re: utility programs used during build |
Date: |
Thu, 15 Jan 2004 15:02:11 -0600 |
User-agent: |
KNode/0.7.2 |
Ralf Corsepius wrote:
> On Thu, 2004-01-15 at 12:41, Warren Turkal wrote:
>> This assumes that something sets those variables still (autoconf).
>
> Just add something similar to this
> CC_FOR_BUILD=${CC_FOR_BUILD-${CC})
> or
> AS_IF([$build != $host],
> [CC_FOR_BUILD=${CC_FOR_BUILD-cc],
> [CC_FOR_BUILD=$CC])
> to your configure.ac.
Then you are still manually setting up this stuff.
> If you additionally split build-compiled tools into a separate directory
> + Makefile.am which contains CC = @CC_FOR_BUILD@ you can use
> automake-generated rules there.
>
> If you want a clean way, you'd have to split buildtools and
> host-packages into separate (sub) packages and write a costomized
> toplevel configure-script to parse and set the configure options for
> build- and host- compile packages.
This is just a hack. I have seen this solution proposed before. It is not
conceptually another package. Why treat it that way? I would like to have
one configure script per package.
> automake isn't the actual problem. The actual problem is autoconf
> support for build-compilation, because supporting build- and host-
> compilation/checks would require to duplicate almost all autoconf
> checks/variables etc.
Automake is part of the problem.
wt
--
Warren Turkal
President, GOLUM, Inc.
http://www.golum.org
- utility programs used during build, Warren Turkal, 2004/01/10
- Re: utility programs used during build, Gary V. Vaughan, 2004/01/13
- Re: utility programs used during build, Tom Tromey, 2004/01/13
- Re: utility programs used during build, Alexandre Duret-Lutz, 2004/01/14
- Re: utility programs used during build, Warren Turkal, 2004/01/15
- Re: utility programs used during build, Ralf Corsepius, 2004/01/15
- Re: utility programs used during build,
Warren Turkal <=
- Re: utility programs used during build, Ralf Corsepius, 2004/01/15
- Re: utility programs used during build, Tom Tromey, 2004/01/16
- Re: utility programs used during build, Ralf Corsepius, 2004/01/16
- Re: utility programs used during build, Warren Turkal, 2004/01/17
- Re: utility programs used during build, Alexandre Duret-Lutz, 2004/01/15