[Top][All Lists]

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

Re: prefix parameter of script configure and cross compile

From: Eric Blake
Subject: Re: prefix parameter of script configure and cross compile
Date: Mon, 25 Aug 2008 05:51:39 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20080708 Thunderbird/ Mnenhy/

Hash: SHA1

According to Fritz Code on 8/25/2008 12:00 AM:
> But the build-system I'm using at the moment uses prefix to specify the
> location of the toolchain on the host.
> E.g. --prefix /opt/devel/arm7/

Correct - --prefix is for the host machine.

> But as a result of this, the produced software expects its runtime
> environment in the folder /opt/devel/arm7 on the target machine.
> So any configuration file needed by the app, is perpended with
> /opt/devel/arm7/.
> So I'm sort of confused with the prefix parameter in the context of cross
> compiling.
> So in my opinion it' more logical to specify with (make
> DEST_DIR="/opt/devel/arm7" install) the location of the produced app on the
> host - temporary until it gets copied to the target.

DESTDIR, not DEST_DIR.  But yes, that's one of the reasons that DESTDIR
exists - so that you can install into a directory tree on the build
machine, then copy that directory tree into the host machine.

You may find this section (and the overall Automake chapter on using the
autotools) useful.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at
Comment: Using GnuPG with Mozilla -


reply via email to

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