Setting data path in a cross-compile environment

Thiago Macieira thiago at kde.org
Tue May 27 02:52:29 PDT 2008


On Tuesday 27 May 2008 10:12:17 Soh Kam Yung wrote:
> I am cross-compiling dbus on a i386 linux platform to run on an arm
> linux platform.
>
> How do I tell configure to compile and put ('install') the dbus data
> files in directory 'x' (~/armbuild/dbus) on my build system (i386) but
> to expect them to be in directory y (/etc/dbus-1/services) on the
> cross-compiled platform (arm)?
>
> I tried using --datadir=/etc/dbus-1/services but this causes 'make
> install' to try to install them in /etc/dbus-1/services on my build
> platform which is not what I want.
>
> Should I be using another make target?

Set the paths as you expect the actual system to be (the ARM in your case).

But, when installing, do: make DESTDIR=x install

That will prepend "x" to all installation paths without changing the installed 
code.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/dbus/attachments/20080527/610b7d37/attachment.pgp 


More information about the dbus mailing list