[Samba] Reference Documentation Server

- Reyneke reynekejunk at hotmail.com
Thu Feb 8 12:28:57 GMT 2007

>Sorry, we can't help you with that.


The problem turned out to be an endian issue. The target embedded platform 
is big-endian and the host little. The build setup doesn't seem to handle 
this very well.

Might be worth putting together a cross-compilation guide for samba.

This is how I did it:

0. Run autogen.sh on host

1. Configure. In source folder, run:

./configure \
--target=<mytarget> \
--includedir=<cross-compile include folder> \

2. Fixup Makefile

Change gcc (&ar) to <cross-compile prefix>-gcc
Add CFLAGS -mcpu=<cpu>

3. Fixup include/config.h

def/undef WORDS_BIGENDIAN as required.

4. Run "make"

Click Here To Find Your Perfect Match This Valentines!  

More information about the samba mailing list