[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: utility programs used during build
From: |
Gary V . Vaughan |
Subject: |
Re: utility programs used during build |
Date: |
Wed, 14 Jan 2004 08:30:08 +0000 |
On Tuesday, January 13, 2004, at 06:05 pm, Warren Turkal wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday 13 January 2004 05:54 am, Gary V. Vaughan wrote:
Warren Turkal wrote:
| Is there any analysis on what it would take to create utility
programs
| that are only used during build in a crosscompiled environment in
| automake?
|
| I and working on the libX11 for Freedesktop.org and it builds a
file and
| uses it during installation, but does not install it. I am under the
| impression that automake does not support this right now. What
would be
| needed to add support for this feature.
Does this work?
nodist_PROGRAMS = installtool
install: installtool
I don't undersand what your example does. Isn't nodist implied on
PROGRAMS?
Yes it is, I meant noinst_, but my fingers typed nodist_ :-/
The following example is closest I can come up with. It will not work
if you
are cross compiling.
noinst_PROGRAMS = installtool
That's what I meant.
installtool_SOURCES = installtool.c
This is implied. If no sources are given, $PROGRAMNAME.c is used by
default.
It will attempt build a host targetted binary. That binary will not
run on the
build system. This is why I think automake needs to be extended.
It depends on the compiler you use. If you have configured with a
crosscompiler, it will do that yes. Maybe you can override it? You
would have to copy the compile and link rules from the generated
Makefile into your Makefile.am, and then change the compiler to
$(CC_BUILD) or something...
I didn't see your other message until after I answered this one. You
are right that it would be nicer if Automake had built in support for
such things.
Cheers,
Gary.
--
Gary V. Vaughan ())_. address@hidden,gnu.org}
Research Scientist ( '/ http://www.oranda.demon.co.uk
GNU Hacker / )= http://www.gnu.org/software/libtool
Technical Author `(_~)_ http://sources.redhat.com/autobook
- Re: utility programs used during build, (continued)
- 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, 2004/01/15
- 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
Re: utility programs used during build,
Gary V . Vaughan <=