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 <[email protected]>
>
> 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
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Reply via email to