autoconf
[Top][All Lists]
Advanced

[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:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
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.
http://www.gnu.org/software/automake/manual/automake.html#DESTDIR

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

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkiynMsACgkQ84KuGfSFAYDD/gCgktr+DIvFs6d/SSFtzNJzqxQi
dZ0AnjC9aS/rK6beG8xEFZBEm9arsXhp
=h1gx
-----END PGP SIGNATURE-----




reply via email to

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