[Samba] Cross-compile and directory locations

Martin Herrman martin at herrman.nl
Thu Aug 4 14:33:14 MDT 2011


Oops! I apologize for posting in HTML..

maybe I found the answer:

./configure --prefix=/home/martin/result/
--exec-prefix=/home/martin/result/ --sbindir=/sbin
--with-rootsbindir=/opt/sbin

does the job? (sbindir defines the install directory, rootsbindir
defines the location where the binaries will search)

Trying this tomorrow..

2011/8/4 Martin Herrman <martin at herrman.nl>
>
> All,
>
> I have cross-compiled 3.5.10 succesfully. The smbd binary can be executed, e.g. ./smbd -b works fine. The smbd binary also allows me to override directory locations, e.g. --libdir=/opt/lib. Unfortunately, other binaries (like smbpasswd) cannot find their libraries because they are looking in the wrong directory (/home/martin/result/.../lib), which only exist on the host on which I compiled the source.
>
> When I use e.g. --with-privatedir=/opt/var/samba/private during ./configure, the binary is ok, but 'make install' fails. 'make install' wants to create /opt/var/samba/private on the host, instead of using the prefix as well (e.g. /home/martin/result/opt/var/samba/private).
>
> Is there any already available solution to this?
>
> Thanks in advance,
>
> Martin


More information about the samba mailing list