[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:

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 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, 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.

Gary V. Vaughan      ())_.  address@hidden,}
Research Scientist   ( '/
GNU Hacker           / )=
Technical Author   `(_~)_

reply via email to

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